Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a norss user preference #1233

Merged
merged 1 commit into from
Dec 4, 2022
Merged

Adding a norss user preference #1233

merged 1 commit into from
Dec 4, 2022

Conversation

dariusk
Copy link

@dariusk dariusk commented Dec 4, 2022

There is now a norss user preference for a user to opt out of having an RSS feed of their public posts. This operates on the exact same logic as the existing noindex for the search engine opt-out: the admin can check a box in Site Settings for a default setting for users. If a user has never touched their RSS opt-out setting then it is equal to whatever the default is. But individual users can override the default in their Preferences -> Other menu.

So a privacy-minded server admin could opt everyone out by default, but the overall default behavior is to have RSS feeds of public posts for everyone, which is the default Mastodon behavior anyway.

The norss, like noindex, is just a key on a pre-existing settings object that is a key-value store, so there doesn't even need to be a database migration for this!

If you are opted out of RSS, there will be no feed discovery link in your profile's HTML, and if you go to the RSS url where you would expect to find the RSS file, you will get an empty but valid RSS feed. It will have the account name but no content (I did this so that existing RSS readers won't complain if they are subscribing to a feed and then that person shuts theirs off -- it will just look like there is no content in the feed rather than throwing a 404).

Appearance in Administration --> Site Settings:

image

Appearance for individual users in Preferences --> Other:

image

Fixes #1232

There is now a `norss` user preference for a user to opt out of having an RSS feed of their public posts. This operates on the exact same logic as the existing `noindex` for the search engine opt-out: the admin can check a box in Site Settings for a default setting for users. If a user has never touched their RSS opt-out setting then it is equal to whatever the default is. But individual users can override the default in their Preferences -> Other menu.

So a privacy-minded server admin could opt everyone out by default, but the overall default behavior is to have RSS feeds of public posts for everyone, which is the default Mastodon behavior anyway.

The `norss`, like `noindex`, is just a key on a pre-existing `settings` object that is a key-value store, so there doesn't even need to be a database migration for this!

Fixes #1232
@dariusk dariusk merged commit 29eb83d into hometown-dev Dec 4, 2022
@dariusk dariusk deleted the 1232-rss-opt-out branch December 4, 2022 06:08
@ironiridis
Copy link

Awesome, thank you! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User preference setting to disable RSS
2 participants