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

Add server rules #15769

Merged
merged 1 commit into from
Feb 21, 2021
Merged

Add server rules #15769

merged 1 commit into from
Feb 21, 2021

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Feb 21, 2021

So far it was not possible to reasonably render a server's rules in client apps due to the unregulated nature of the "custom extended information" field, with no guarantee that it contains any rules, or where they are, or how they are formatted, not to mention all of the extra HTML that it is possible to have there (YouTube embeds, donation banners, and so on).

It is also my belief that the long and detailed codes of conduct that are common on the fediverse are often not read during sign-up or any other time (until some dispute appears).

With a specialized server rules system that essentially amounts to a flat bullet point list (where each item is limited to plain text and 300 characters), it is much easier for new users to read and understand and for client apps to display.

image

REST API changes

  • Add GET /api/v1/instance/rules to REST API
    • Returns objects with attributes id and text
    • id is currently not useful for anything but might become useful later if the rules need to be referenced
  • Add rules attribute to GET /api/v1/instance in REST API

@Gargron Gargron added api REST API, Streaming API, Web Push API moderation Administration and moderation tooling labels Feb 21, 2021
@Gargron Gargron merged commit 8331fdf into main Feb 21, 2021
@Gargron Gargron deleted the feature-server-rules branch February 21, 2021 18:50
dr-bonez pushed a commit to Start9Labs/mastodon that referenced this pull request Mar 1, 2021
remitocat pushed a commit to sakura-tel/mastodon that referenced this pull request May 10, 2021
chrisguida pushed a commit to Start9Labs/mastodon that referenced this pull request Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api REST API, Streaming API, Web Push API moderation Administration and moderation tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants