From daaf383236c1c135f84f583105c69010ed67c0c5 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Tue, 4 Oct 2022 17:43:42 +0200 Subject: [PATCH] Add titles to RSS feeds again --- README.md | 3 +++ app/views/accounts/show.rss.ruby | 1 + app/views/tags/show.rss.ruby | 1 + 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 3673409d59..80fedb8c44 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ I highly suggest only ever running the `main` branch in production! - Allow higher resolution images. (4096x4096 instead of the previous limit of 1920x1080) - Allow posting polls with only one poll option (if `MIN_POLL_OPTIONS` is set to 1 on your instance). - Added oatstodon flavour (taken from [types.pl fork](https://github.com/ralsei/types.pl), by [@oat@hellsite.site](https://hellsite.site/@oat)) +- RSS feeds have titles again. + - Account RSS feeds show the CW (if applicable). + - Tag RSS feeds show the handle (username if local, username@domain if remote) and the CW (if applicable). ## Previous differences now merged into glitch-soc - Fixed incorrect upload size limit display when adding new a new custom emoji. ([Pull request](https://github.com/glitch-soc/mastodon/pull/1763)) diff --git a/app/views/accounts/show.rss.ruby b/app/views/accounts/show.rss.ruby index 34e29d483f..30cb42f8d0 100644 --- a/app/views/accounts/show.rss.ruby +++ b/app/views/accounts/show.rss.ruby @@ -9,6 +9,7 @@ RSS::Builder.build do |doc| @statuses.each do |status| doc.item do |item| + item.title("New post#{" (CW: #{status.spoiler_text})" unless status.spoiler_text.empty?}") item.link(ActivityPub::TagManager.instance.url_for(status)) item.pub_date(status.created_at) item.description(rss_status_content_format(status)) diff --git a/app/views/tags/show.rss.ruby b/app/views/tags/show.rss.ruby index 8e0c2327b5..25f76610ff 100644 --- a/app/views/tags/show.rss.ruby +++ b/app/views/tags/show.rss.ruby @@ -7,6 +7,7 @@ RSS::Builder.build do |doc| @statuses.each do |status| doc.item do |item| + item.title("New post by #{status.account.pretty_acct}#{" (CW: #{status.spoiler_text})" unless status.spoiler_text.empty?}") item.link(ActivityPub::TagManager.instance.url_for(status)) item.pub_date(status.created_at) item.description(rss_status_content_format(status))