mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-08 22:52:02 -05:00
[PR #243] [MERGED] Prefer content over description for Item Description
#233
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/243
Author: @ricoberger
Created: 4/19/2025
Status: ✅ Merged
Merged: 4/19/2025
Merged by: @ricoberger
Base:
main← Head:prefer-content-field-over-description-field📝 Commits (1)
e0038f8Prefercontentoverdescriptionfor Item Description📊 Changes
2 files changed (+533 additions, -580 deletions)
View changed files
📝
supabase/functions/_shared/feed/rss.ts(+96 -76)📝
supabase/functions/_shared/feed/rss_test.ts(+437 -504)📄 Description
Until now, we always checked the
descriptionfield of an item first toget our description value. If the
descriptionfield is present wedirectly used it and never checked the
contentfield.Now we are checking the
contentfield first and afterwards thedescriptionfield. This way by default thecontentfield is used asour description. This should be more common to get the full article text
when both fields are present in an RSS feed.
When both fields are present and the
descriptionfield is longer thenthe
contentfield, we will still prefer thedescriptionfield.Closes #226
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.