Skip to content

Commit

Permalink
Clarify that relations recursion should be capped at a certain depth (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes authored Jun 13, 2024
1 parent f38b052 commit 672af37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1854.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that relations recursion should be capped at a certain depth.
9 changes: 4 additions & 5 deletions data/api/client-server/relations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,10 @@ components:
If set to `false`, only events which have a direct relation with the given
event will be included.
If set to `true`, all events which relate to the given event, or relate to
events that relate to the given event, will be included.
It is recommended that homeservers traverse at least 3 levels of relationships.
Implementations may perform more but should be careful to not infinitely recurse.
If set to `true`, events which have an indirect relation with the given event
will be included additionally up to a certain depth level. Homeservers SHOULD traverse
at least 3 levels of relationships. Implementations MAY perform more but MUST be careful
to not infinitely recurse.
The default value is `false`.
schema:
Expand Down

0 comments on commit 672af37

Please sign in to comment.