@@ -17,67 +17,26 @@ It returns a JSON body like the following:
17
17
{
18
18
"event_reports": [
19
19
{
20
- "content": {
21
- "reason": "foo",
22
- "score": -100
23
- },
24
20
"event_id": "$bNUFCwGzWca1meCGkjp-zwslF-GfVcXukvRLI1_FaVY",
25
- "event_json": {
26
- "auth_events": [
27
- "$YK4arsKKcc0LRoe700pS8DSjOvUT4NDv0HfInlMFw2M",
28
- "$oggsNXxzPFRE3y53SUNd7nsj69-QzKv03a1RucHu-ws"
29
- ],
30
- "content": {
31
- "body": "matrix.org: This Week in Matrix",
32
- "format": "org.matrix.custom.html",
33
- "formatted_body": "<strong>matrix.org</strong>:<br><a href=\"https://matrix.org/blog/\"><strong>This Week in Matrix</strong></a>",
34
- "msgtype": "m.notice"
35
- },
36
- "depth": 546,
37
- "hashes": {
38
- "sha256": "xK1//xnmvHJIOvbgXlkI8eEqdvoMmihVDJ9J4SNlsAw"
39
- },
40
- "origin": "matrix.org",
41
- "origin_server_ts": 1592291711430,
42
- "prev_events": [
43
- "$YK4arsKKcc0LRoe700pS8DSjOvUT4NDv0HfInlMFw2M"
44
- ],
45
- "prev_state": [],
46
- "room_id": "!ERAgBpSOcCCuTJqQPk:matrix.org",
47
- "sender": "@foobar:matrix.org",
48
- "signatures": {
49
- "matrix.org": {
50
- "ed25519:a_JaEG": "cs+OUKW/iHx5pEidbWxh0UiNNHwe46Ai9LwNz+Ah16aWDNszVIe2gaAcVZfvNsBhakQTew51tlKmL2kspXk/Dg"
51
- }
52
- },
53
- "type": "m.room.message",
54
- "unsigned": {
55
- "age_ts": 1592291711430,
56
- }
57
- },
58
21
"id": 2,
59
22
"reason": "foo",
23
+ "score": -100,
60
24
"received_ts": 1570897107409,
61
- "room_alias ": "#alias1:matrix.org",
25
+ "canonical_alias ": "#alias1:matrix.org",
62
26
"room_id": "!ERAgBpSOcCCuTJqQPk:matrix.org",
27
+ "name": "Matrix HQ",
63
28
"sender": "@foobar:matrix.org",
64
29
"user_id": "@foo:matrix.org"
65
30
},
66
31
{
67
- "content": {
68
- "reason": "bar",
69
- "score": -100
70
- },
71
32
"event_id": "$3IcdZsDaN_En-S1DF4EMCy3v4gNRKeOJs8W5qTOKj4I",
72
- "event_json": {
73
- // hidden items
74
- // see above
75
- },
76
33
"id": 3,
77
34
"reason": "bar",
35
+ "score": -100,
78
36
"received_ts": 1598889612059,
79
- "room_alias ": "#alias2:matrix.org",
37
+ "canonical_alias ": "#alias2:matrix.org",
80
38
"room_id": "!eGvUQuTCkHGVwNMOjv:matrix.org",
39
+ "name": "Your room name here",
81
40
"sender": "@foobar:matrix.org",
82
41
"user_id": "@bar:matrix.org"
83
42
}
@@ -113,17 +72,94 @@ The following fields are returned in the JSON response body:
113
72
- ``id ``: integer - ID of event report.
114
73
- ``received_ts ``: integer - The timestamp (in milliseconds since the unix epoch) when this report was sent.
115
74
- ``room_id ``: string - The ID of the room in which the event being reported is located.
75
+ - ``name ``: string - The name of the room.
116
76
- ``event_id ``: string - The ID of the reported event.
117
77
- ``user_id ``: string - This is the user who reported the event and wrote the reason.
118
78
- ``reason ``: string - Comment made by the ``user_id `` in this report. May be blank.
119
- - ``content ``: object - Content of reported event.
120
-
121
- - ``reason ``: string - Comment made by the ``user_id `` in this report. May be blank.
122
- - ``score ``: integer - Content is reported based upon a negative score, where -100 is "most offensive" and 0 is "inoffensive".
123
-
79
+ - ``score ``: integer - Content is reported based upon a negative score, where -100 is "most offensive" and 0 is "inoffensive".
124
80
- ``sender ``: string - This is the ID of the user who sent the original message/event that was reported.
125
- - ``room_alias ``: string - The alias of the room. ``null `` if the room does not have a canonical alias set.
126
- - ``event_json ``: object - Details of the original event that was reported.
81
+ - ``canonical_alias ``: string - The canonical alias of the room. ``null `` if the room does not have a canonical alias set.
127
82
- ``next_token ``: integer - Indication for pagination. See above.
128
83
- ``total ``: integer - Total number of event reports related to the query (``user_id `` and ``room_id ``).
129
84
85
+ Show details of a specific event report
86
+ =======================================
87
+
88
+ This API returns information about a specific event report.
89
+
90
+ The api is::
91
+
92
+ GET /_synapse/admin/v1/event_reports/<report_id>
93
+
94
+ To use it, you will need to authenticate by providing an ``access_token `` for a
95
+ server admin: see `README.rst <README.rst >`_.
96
+
97
+ It returns a JSON body like the following:
98
+
99
+ .. code :: jsonc
100
+
101
+ {
102
+ "event_id": "$bNUFCwGzWca1meCGkjp-zwslF-GfVcXukvRLI1_FaVY",
103
+ "event_json": {
104
+ "auth_events": [
105
+ "$YK4arsKKcc0LRoe700pS8DSjOvUT4NDv0HfInlMFw2M",
106
+ "$oggsNXxzPFRE3y53SUNd7nsj69-QzKv03a1RucHu-ws"
107
+ ],
108
+ "content": {
109
+ "body": "matrix.org: This Week in Matrix",
110
+ "format": "org.matrix.custom.html",
111
+ "formatted_body": "<strong>matrix.org</strong>:<br><a href=\"https://matrix.org/blog/\"><strong>This Week in Matrix</strong></a>",
112
+ "msgtype": "m.notice"
113
+ },
114
+ "depth": 546,
115
+ "hashes": {
116
+ "sha256": "xK1//xnmvHJIOvbgXlkI8eEqdvoMmihVDJ9J4SNlsAw"
117
+ },
118
+ "origin": "matrix.org",
119
+ "origin_server_ts": 1592291711430,
120
+ "prev_events": [
121
+ "$YK4arsKKcc0LRoe700pS8DSjOvUT4NDv0HfInlMFw2M"
122
+ ],
123
+ "prev_state": [],
124
+ "room_id": "!ERAgBpSOcCCuTJqQPk:matrix.org",
125
+ "sender": "@foobar:matrix.org",
126
+ "signatures": {
127
+ "matrix.org": {
128
+ "ed25519:a_JaEG": "cs+OUKW/iHx5pEidbWxh0UiNNHwe46Ai9LwNz+Ah16aWDNszVIe2gaAcVZfvNsBhakQTew51tlKmL2kspXk/Dg"
129
+ }
130
+ },
131
+ "type": "m.room.message",
132
+ "unsigned": {
133
+ "age_ts": 1592291711430,
134
+ }
135
+ },
136
+ "id": <report_id>,
137
+ "reason": "foo",
138
+ "score": -100,
139
+ "received_ts": 1570897107409,
140
+ "canonical_alias": "#alias1:matrix.org",
141
+ "room_id": "!ERAgBpSOcCCuTJqQPk:matrix.org",
142
+ "name": "Matrix HQ",
143
+ "sender": "@foobar:matrix.org",
144
+ "user_id": "@foo:matrix.org"
145
+ }
146
+
147
+ **URL parameters: **
148
+
149
+ - ``report_id ``: string - The ID of the event report.
150
+
151
+ **Response **
152
+
153
+ The following fields are returned in the JSON response body:
154
+
155
+ - ``id ``: integer - ID of event report.
156
+ - ``received_ts ``: integer - The timestamp (in milliseconds since the unix epoch) when this report was sent.
157
+ - ``room_id ``: string - The ID of the room in which the event being reported is located.
158
+ - ``name ``: string - The name of the room.
159
+ - ``event_id ``: string - The ID of the reported event.
160
+ - ``user_id ``: string - This is the user who reported the event and wrote the reason.
161
+ - ``reason ``: string - Comment made by the ``user_id `` in this report. May be blank.
162
+ - ``score ``: integer - Content is reported based upon a negative score, where -100 is "most offensive" and 0 is "inoffensive".
163
+ - ``sender ``: string - This is the ID of the user who sent the original message/event that was reported.
164
+ - ``canonical_alias ``: string - The canonical alias of the room. ``null `` if the room does not have a canonical alias set.
165
+ - ``event_json ``: object - Details of the original event that was reported.
0 commit comments