mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 07:02:01 -05:00
[PR #72] [MERGED] [rss] Allow Users to Provide a Website URL #76
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/72
Author: @ricoberger
Created: 11/24/2023
Status: ✅ Merged
Merged: 11/24/2023
Merged by: @ricoberger
Base:
main← Head:rss-allow-users-to-provide-a-website-url📝 Commits (1)
85503c9[rss] Allow Users to Provide a Website URL📊 Changes
3 files changed (+85 additions, -15 deletions)
View changed files
📝
app/lib/widgets/source/add/add_source_rss.dart(+4 -0)📝
supabase/functions/_shared/feed/rss.ts(+78 -13)📝
supabase/functions/_shared/feed/utils/getFavicon.ts(+3 -2)📄 Description
Users can now provide the URL of a website instead of the url of a RSS feed via the input field for the RSS source.
This is possible because we are now trying to get and parse the RSS feed for the provided url as usual, but if this operation fails, we try to parse the text as html, so that we can check if it contains a "" tag. If this is the case we are using this value to try to get and parse the RSS feed again. If it fails again we are returning an error as before.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.