mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-25 20:14:09 +02:00
Compare commits
4 commits
ebc71218d2
...
0c2f84bc1a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c2f84bc1a | ||
|
|
8bfdf2c2e2 | ||
|
|
31fd5b8cd5 | ||
|
|
97bf30b7a3 |
|
|
@ -35,14 +35,3 @@ based on whether or not the reporting user is joined to any rooms that the
|
||||||
reported user is joined to. This is because users can be exposed to harmful
|
reported user is joined to. This is because users can be exposed to harmful
|
||||||
content without being joined to a room. For instance, through user
|
content without being joined to a room. For instance, through user
|
||||||
directories or invites.
|
directories or invites.
|
||||||
|
|
||||||
Clients can infer whether a reported event, room or user exists based on the
|
|
||||||
404 responses of the reporting endpoints. Homeservers that wish to conceal
|
|
||||||
this information MAY return 200 responses regardless of the existence of the
|
|
||||||
reported subject.
|
|
||||||
|
|
||||||
Furthermore, it might be possible for clients to deduce whether a reported
|
|
||||||
event, room or user exists by timing the response. This is because only a
|
|
||||||
report for an existing subject will require the homeserver to do further
|
|
||||||
processing. To combat this, homeserver implementations MAY add a random
|
|
||||||
delay when generating a response.
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,9 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
reason:
|
reason:
|
||||||
type: string
|
type: string
|
||||||
description: The reason the room is being reported.
|
description: The reason the room is being reported. May be blank.
|
||||||
|
required:
|
||||||
|
- reason
|
||||||
required: true
|
required: true
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
|
|
@ -88,6 +90,11 @@ paths:
|
||||||
Reports an event as inappropriate to the server, which may then notify
|
Reports an event as inappropriate to the server, which may then notify
|
||||||
the appropriate people. The caller must be joined to the room to report
|
the appropriate people. The caller must be joined to the room to report
|
||||||
it.
|
it.
|
||||||
|
|
||||||
|
Furthermore, it might be possible for clients to deduce whether a reported
|
||||||
|
event exists by timing the response. This is because only a report for an
|
||||||
|
existing event will require the homeserver to do further processing. To
|
||||||
|
combat this, homeservers MAY add a random delay when generating a response.
|
||||||
operationId: reportEvent
|
operationId: reportEvent
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
|
|
@ -169,6 +176,15 @@ paths:
|
||||||
that the reported user is joined to.
|
that the reported user is joined to.
|
||||||
|
|
||||||
Clients may wish to [ignore](#ignoring-users) users after reporting them.
|
Clients may wish to [ignore](#ignoring-users) users after reporting them.
|
||||||
|
|
||||||
|
Clients could infer whether a reported user exists based on the 404 response.
|
||||||
|
Homeservers that wish to conceal this information MAY return 200 responses
|
||||||
|
regardless of the existence of the reported user.
|
||||||
|
|
||||||
|
Furthermore, it might be possible for clients to deduce whether a reported
|
||||||
|
user exists by timing the response. This is because only a report for an
|
||||||
|
existing user will require the homeserver to do further processing. To
|
||||||
|
combat this, homeservers MAY add a random delay when generating a response.
|
||||||
operationId: reportUser
|
operationId: reportUser
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
|
|
@ -191,14 +207,18 @@ paths:
|
||||||
properties:
|
properties:
|
||||||
reason:
|
reason:
|
||||||
type: string
|
type: string
|
||||||
description: The reason the room is being reported.
|
description: The reason the room is being reported. May be blank.
|
||||||
|
required:
|
||||||
|
- reason
|
||||||
required: true
|
required: true
|
||||||
security:
|
security:
|
||||||
- accessTokenQuery: []
|
- accessTokenQuery: []
|
||||||
- accessTokenBearer: []
|
- accessTokenBearer: []
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: The user has been reported successfully.
|
description: |
|
||||||
|
The user has been reported successfully or the server chose
|
||||||
|
to not disclose whether the users exists.
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue