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 domain block notes #11515

Merged
merged 9 commits into from
Aug 7, 2019
Merged

Conversation

ClearlyClaire
Copy link
Contributor

@ClearlyClaire ClearlyClaire commented Aug 7, 2019

This PR adds a way to write comments regarding the reasons of instance blocks.
It also improves handling of upgrading an instance block, and allows editing (even downgrading) an instance block as long as it is triggered from the new “edit domain block” button.

It does not add anything to the admin API, as that API doesn't seem to cover domain blocks.

It does not actually add a way to display reasons publicly, as that would be dependent on #11298

Creating a new domain block

image

Displaying a domain block

image

Editing an existing domain block

image

@ClearlyClaire ClearlyClaire force-pushed the features/domain-notes branch 3 times, most recently from 5693430 to ae9acae Compare August 7, 2019 15:14
@Gargron
Copy link
Member

Gargron commented Aug 7, 2019

Closed by accident?

@ClearlyClaire ClearlyClaire reopened this Aug 7, 2019
@ClearlyClaire
Copy link
Contributor Author

Yeah, I didn't even notice I closed it :|

@ClearlyClaire ClearlyClaire force-pushed the features/domain-notes branch 3 times, most recently from 98af7b1 to 2fa4202 Compare August 7, 2019 16:18
@ClearlyClaire ClearlyClaire force-pushed the features/domain-notes branch 2 times, most recently from 60ad62d to e69a793 Compare August 7, 2019 16:26
@ClearlyClaire ClearlyClaire marked this pull request as ready for review August 7, 2019 16:31
@Gargron Gargron merged commit bced704 into mastodon:master Aug 7, 2019
@ghost ghost mentioned this pull request Sep 11, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Add database columns for adding notes to domain blocks/restrctions

* Add admin UI to set private and public comments when blocking a domain

* Add text for private and public comments on domain blocks

* Show domain block comments in admin UI

* Add comments to the domain block undo page

* Make UnblockDomainService more robust regarding upgraded domain blocks

* Allow editing domain blocks

* Rename button from “undo domain block” to “view domain block” in account admin UI

* Change test to unsilence silenced users from upgraded blocks
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.

2 participants