Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
713d70d6
Commit
713d70d6
authored
4 years ago
by
Brendan Abolivier
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/new_push_rules
parents
60328ce9
e2a4ba6f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/7998.doc
+1
-0
1 addition, 0 deletions
changelog.d/7998.doc
docs/admin_api/shutdown_room.md
+21
-1
21 additions, 1 deletion
docs/admin_api/shutdown_room.md
with
22 additions
and
1 deletion
changelog.d/7998.doc
0 → 100644
+
1
−
0
View file @
713d70d6
Add documentation for how to undo a room shutdown.
This diff is collapsed.
Click to expand it.
docs/admin_api/shutdown_room.md
+
21
−
1
View file @
713d70d6
...
@@ -33,7 +33,7 @@ You will need to authenticate with an access token for an admin user.
...
@@ -33,7 +33,7 @@ You will need to authenticate with an access token for an admin user.
*
`message`
- Optional. A string containing the first message that will be sent as
*
`message`
- Optional. A string containing the first message that will be sent as
`new_room_user_id`
in the new room. Ideally this will clearly convey why the
`new_room_user_id`
in the new room. Ideally this will clearly convey why the
original room was shut down.
original room was shut down.
If not specified, the default value of
`room_name`
is "Content Violation
If not specified, the default value of
`room_name`
is "Content Violation
Notification". The default value of
`message`
is "Sharing illegal content on
Notification". The default value of
`message`
is "Sharing illegal content on
othis server is not permitted and rooms in violation will be blocked."
othis server is not permitted and rooms in violation will be blocked."
...
@@ -72,3 +72,23 @@ Response:
...
@@ -72,3 +72,23 @@ Response:
"new_room_id": "!newroomid:example.com",
"new_room_id": "!newroomid:example.com",
},
},
```
```
## Undoing room shutdowns
*Note*
: This guide may be outdated by the time you read it. By nature of room shutdowns being performed at the database level,
the structure can and does change without notice.
First, it's important to understand that a room shutdown is very destructive. Undoing a shutdown is not as simple as pretending it
never happened - work has to be done to move forward instead of resetting the past.
1.
For safety reasons, it is recommended to shut down Synapse prior to continuing.
2.
In the database, run
`DELETE FROM blocked_rooms WHERE room_id = '!example:example.org';`
*
For caution: it's recommended to run this in a transaction:
`BEGIN; DELETE ...;`
, verify you got 1 result, then
`COMMIT;`
.
*
The room ID is the same one supplied to the shutdown room API, not the Content Violation room.
3.
Restart Synapse (required).
You will have to manually handle, if you so choose, the following:
*
Aliases that would have been redirected to the Content Violation room.
*
Users that would have been booted from the room (and will have been force-joined to the Content Violation room).
*
Removal of the Content Violation room if desired.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment