Add titles to RSS feeds again

This commit is contained in:
Jeremy Kescher 2022-10-04 17:43:42 +02:00
parent c33675bdb1
commit daaf383236
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
3 changed files with 5 additions and 0 deletions

View file

@ -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 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). - 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)) - 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 ## 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)) - Fixed incorrect upload size limit display when adding new a new custom emoji. ([Pull request](https://github.com/glitch-soc/mastodon/pull/1763))

View file

@ -9,6 +9,7 @@ RSS::Builder.build do |doc|
@statuses.each do |status| @statuses.each do |status|
doc.item do |item| 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.link(ActivityPub::TagManager.instance.url_for(status))
item.pub_date(status.created_at) item.pub_date(status.created_at)
item.description(rss_status_content_format(status)) item.description(rss_status_content_format(status))

View file

@ -7,6 +7,7 @@ RSS::Builder.build do |doc|
@statuses.each do |status| @statuses.each do |status|
doc.item do |item| 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.link(ActivityPub::TagManager.instance.url_for(status))
item.pub_date(status.created_at) item.pub_date(status.created_at)
item.description(rss_status_content_format(status)) item.description(rss_status_content_format(status))