mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #75] [MERGED] [core] Fix getMedia Function
#79
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/feeddeck/feeddeck/pull/75
Author: @ricoberger
Created: 11/25/2023
Status: ✅ Merged
Merged: 11/25/2023
Merged by: @ricoberger
Base:
main← Head:core-fix-getMedia-function📝 Commits (1)
914e521[core] FixgetMediaFunction📊 Changes
4 files changed (+6 additions, -6 deletions)
View changed files
📝
supabase/functions/_shared/feed/medium.ts(+2 -2)📝
supabase/functions/_shared/feed/nitter.ts(+1 -1)📝
supabase/functions/_shared/feed/rss.ts(+2 -2)📝
supabase/functions/_shared/feed/tumblr.ts(+1 -1)📄 Description
In the
getMediafunction for Medium, Nitter, RSS and Tumblr we checked the content and/or description of an RSS feed entry for a media file, but we didn't pass the string to theunescapefunction first, so that we might missed some media files, because our regular expression were not able to find an image.Now we are using the
unescapefunction before using our regular expression to find the image, similar to how we are also applying theunescapefunction before we save the item description.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.