mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 12:15:02 -04:00
Return the raw federation event rather than adding extra keys for federation data.
This commit is contained in:
parent
5940ec993b
commit
edb557b2ad
6 changed files with 27 additions and 19 deletions
|
@ -27,14 +27,14 @@ class InitialSyncRestServlet(RestServlet):
|
|||
def on_GET(self, request):
|
||||
user = yield self.auth.get_user_by_req(request)
|
||||
with_feedback = "feedback" in request.args
|
||||
trim_events = "raw" not in request.args
|
||||
as_client_event = "raw" not in request.args
|
||||
pagination_config = PaginationConfig.from_request(request)
|
||||
handler = self.handlers.message_handler
|
||||
content = yield handler.snapshot_all_rooms(
|
||||
user_id=user.to_string(),
|
||||
pagin_config=pagination_config,
|
||||
feedback=with_feedback,
|
||||
trim_events=trim_events
|
||||
as_client_event=as_client_event
|
||||
)
|
||||
|
||||
defer.returnValue((200, content))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue