[PR #72] [MERGED] [rss] Allow Users to Provide a Website URL #76

Closed
opened 2025-10-31 16:56:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: mainHead: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/feeddeck/feeddeck/pull/72 **Author:** [@ricoberger](https://github.com/ricoberger) **Created:** 11/24/2023 **Status:** ✅ Merged **Merged:** 11/24/2023 **Merged by:** [@ricoberger](https://github.com/ricoberger) **Base:** `main` ← **Head:** `rss-allow-users-to-provide-a-website-url` --- ### 📝 Commits (1) - [`85503c9`](https://github.com/feeddeck/feeddeck/commit/85503c9567ffab131954114338536fbec483135b) [rss] Allow Users to Provide a Website URL ### 📊 Changes **3 files changed** (+85 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 "<link type="application/rss+xml" href="RSS_FEED_URL">" 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. <!-- Keep PR title verbose enough and add prefix telling about what source it touches e.g "[rss] Add feature xyz" or if the the PR is not realated to a source use "[core]", e.g. "[core] Fix xyz". If you add a breaking change within your PR you should add ":warning:" to the title, e.g. ":warning: [core] My breaking change" --> <!-- Description of what have been changed. Please also reference an issue, when available. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 16:56:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/feeddeck#76