mirror of
https://github.com/PC-Admin/matrix-moderation-tool.git
synced 2025-08-16 08:40:28 -04:00
added event report functions and updated docs/ui
This commit is contained in:
@@ -11,9 +11,9 @@ This guide provides detailed steps for server-side operations that use the datab
|
||||
|
||||
---
|
||||
|
||||
### 1. Delete and Block Specific Media
|
||||
100) **Delete and Block Specific Media.**
|
||||
|
||||
This command allows an admin to delete a specific media on their Matrix Synapse server and block it to prevent future accesses.
|
||||
> This command allows an admin to delete a specific media on their Matrix Synapse server and block it to prevent future accesses.
|
||||
|
||||
#### Process Flow:
|
||||
|
||||
@@ -33,7 +33,7 @@ $ ssh matrix.perthchat.org "true > ...path to file..."
|
||||
$ ssh matrix.perthchat.org "chattr +i ...path to file..."
|
||||
```
|
||||
|
||||
### 2. Purge Remote Media Repository
|
||||
101) **Purge Remote Media Repository**
|
||||
|
||||
This command purges the remote media repository for a certain range of days.
|
||||
Process Flow:
|
||||
@@ -49,7 +49,7 @@ $ date --date '149 days ago' +%s
|
||||
$ curl -X POST --header "Authorization: Bearer ACCESS_TOKEN" '... Matrix Synapse purge endpoint ...'
|
||||
```
|
||||
|
||||
### 3. Prepare Database for Copying Events of Multiple Rooms
|
||||
102) **Prepare Database for Copying Events of Multiple Rooms**
|
||||
|
||||
This command prepares the PostgreSQL database to export events from multiple Matrix rooms.
|
||||
Process Flow:
|
||||
@@ -81,4 +81,20 @@ After copying the data, ensure to clean up the RAM disk:
|
||||
```bash
|
||||
$ rm -r /matrix/postgres/data/ramdisk/*
|
||||
$ umount /matrix/postgres/data/ramdisk
|
||||
```
|
||||
```
|
||||
|
||||
103) **Show last 10 reported events.**
|
||||
|
||||
> Gets the last 10 reported events using the event reports API and returns it.
|
||||
|
||||
https://matrix-org.github.io/synapse/latest/admin_api/event_reports.html#show-reported-events
|
||||
|
||||
104) **Paginate all reported events.**
|
||||
|
||||
> Combines all the events into a large JSON and returns it.
|
||||
|
||||
105) **Show details of a specific event report**
|
||||
|
||||
> This API returns information about a specific event report.
|
||||
|
||||
https://matrix-org.github.io/synapse/latest/admin_api/event_reports.html#show-details-of-a-specific-event-report
|
||||
|
Reference in New Issue
Block a user