mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Comment
This commit is contained in:
parent
97479d0c54
commit
acb501c46d
@ -152,6 +152,14 @@ class KeyQueryServlet(RestServlet):
|
|||||||
|
|
||||||
|
|
||||||
class KeyChangesServlet(RestServlet):
|
class KeyChangesServlet(RestServlet):
|
||||||
|
"""Returns the list of changes of keys between two stream tokens (may return
|
||||||
|
spurious results).
|
||||||
|
|
||||||
|
GET /keys/changes?from=...&to=...
|
||||||
|
|
||||||
|
200 OK
|
||||||
|
{ "changed": ["@foo:example.com"] }
|
||||||
|
"""
|
||||||
PATTERNS = client_v2_patterns(
|
PATTERNS = client_v2_patterns(
|
||||||
"/keys/changes$",
|
"/keys/changes$",
|
||||||
releases=()
|
releases=()
|
||||||
@ -171,7 +179,10 @@ class KeyChangesServlet(RestServlet):
|
|||||||
requester = yield self.auth.get_user_by_req(request, allow_guest=True)
|
requester = yield self.auth.get_user_by_req(request, allow_guest=True)
|
||||||
|
|
||||||
from_token_string = parse_string(request, "from")
|
from_token_string = parse_string(request, "from")
|
||||||
parse_string(request, "to") # We want to enforce they do pass us one.
|
|
||||||
|
# We want to enforce they do pass us one, but we ignore it and return
|
||||||
|
# changes after the "to" as well as before.
|
||||||
|
parse_string(request, "to")
|
||||||
|
|
||||||
from_token = StreamToken.from_string(from_token_string)
|
from_token = StreamToken.from_string(from_token_string)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user