diff options
author | Erik Johnston <erik@matrix.org> | 2019-03-04 14:34:34 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-03-04 14:43:42 +0000 |
commit | d1523aed6bebf00a4643d72eea611b029db65f08 (patch) | |
tree | 377f5064f00cf17de6a7195872fd4f24a5c57858 /synapse/handlers/federation.py | |
parent | s/get_forward_events/get_successor_events/ (diff) | |
download | synapse-d1523aed6bebf00a4643d72eea611b029db65f08.tar.xz |
Only check history visibility when filtering
When filtering events to send to server we check more than just history visibility. However when deciding whether to backfill or not we only care about the history visibility.
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 32d7ba6cf5..bf2989aefd 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -891,9 +891,11 @@ class FederationHandler(BaseHandler): get_prev_content=False, ) + # We set `check_history_visibility_only` as we might otherwise get false + # positives from users having been erased. filtered_extremities = yield filter_events_for_server( self.store, self.server_name, list(extremities_events.values()), - redact=False, + redact=False, check_history_visibility_only=True, ) if not filtered_extremities: |