mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-21 14:00:26 -05:00
[PR #1299] [MERGED] api/pinterest: return fetch.empty if a link is invalid #11284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imputnet/cobalt/pull/1299
Author: @hyperdefined
Created: 5/30/2025
Status: ✅ Merged
Merged: 6/8/2025
Merged by: @wukko
Base:
develop← Head:specify-pinterest-error📝 Commits (3)
cb78dd1api/pinterest:fetch.emptyfor invalid links82fa660api/pinterest: better regex namingff0500aapi/tests/pinterest: specify errorCode for invalid📊 Changes
2 files changed (+15 additions, -0 deletions)
View changed files
📝
api/src/processing/services/pinterest.js(+5 -0)📝
api/src/util/tests/pinterest.json(+10 -0)📄 Description
This simply checks if the pin linked is valid, and throws the proper error that it can't find the media.
Before
After
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.