- Jun 29, 2022
-
-
Šimon Brandner authored
Signed-off-by:
Šimon Brandner <simon.bra.ag@gmail.com>
-
Erik Johnston authored
-
- Jun 28, 2022
-
-
reivilibre authored
* Make _iterate_over_text easier to read by using simple data structures * Prefer a set of tags to ignore In my tests, it's 4x faster to check for containment in a set of this size * Add a stack size limit to _iterate_over_text * Continue accepting the case where there is no body element * Use an early return instead for None Co-authored-by:
Richard van der Hoff <richard@matrix.org>
-
Erik Johnston authored
-
David Robertson authored
-
- Jun 27, 2022
-
-
Robert Long authored
-
- Jun 22, 2022
-
-
santhoshivan23 authored
-
- Jun 17, 2022
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
* Extend the auth rule checks for `m.room.create` events ... and move them up to the top of the function. Since the no auth_events are allowed for m.room.create events, we may as well get the m.room.create event checks out of the way first. * Add a test for create events with prev_events
-
Patrick Cloke authored
-
Quentin Gliech authored
-
- Jun 16, 2022
-
-
Patrick Cloke authored
Pull out `twitter:` meta tags when generating a preview and use it to augment any `og:` meta tags. Prefers Open Graph information over Twitter card information.
-
Jacek Kuśnierz authored
Co-authored-by:
David Robertson <david.m.robertson1@gmail.com>
-
- Jun 15, 2022
-
-
Richard van der Hoff authored
* Add auth events to events used in tests * Move some event auth checks out to a different method Some of the event auth checks apply to an event's auth_events, rather than the state at the event - which means they can play no part in state resolution. Move them out to a separate method. * Rename check_auth_rules_for_event Now it only checks the state-dependent auth rules, it needs a better name.
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Erik Johnston authored
-
Hannes Lerchl authored
-
Erik Johnston authored
Fixes #11887 hopefully. The core change here is that `event_push_summary` now holds a summary of counts up until a much more recent point, meaning that the range of rows we need to count in `event_push_actions` is much smaller. This needs two major changes: 1. When we get a receipt we need to recalculate `event_push_summary` rather than just delete it 2. The logic for deleting `event_push_actions` is now divorced from calculating `event_push_summary`. In future it would be good to calculate `event_push_summary` while we persist a new event (it should just be a case of adding one to the relevant rows in `event_push_summary`), as that will further simplify the get counts logic and remove the need for us to periodically update `event_push_summary` in a background job.
-
reivilibre authored
Fix a long-standing bug which meant that rate limiting was not restrictive enough in some cases. (#13018)
-
David Robertson authored
-
- Jun 14, 2022
-
-
David Robertson authored
* Rename test_fedclient to match its source file * Require at least one destination to be truthy * Explicitly validate user ID in profile endpoint GETs Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Quentin Gliech authored
Move the "email unsubscribe" resource, refactor the macaroon generator & simplify the access token verification logic. (#12986) This simplifies the access token verification logic by removing the `rights` parameter which was only ever used for the unsubscribe link in email notifications. The latter has been moved under the `/_synapse` namespace, since it is not a standard API. This also makes the email verification link more secure, by embedding the app_id and pushkey in the macaroon and verifying it. This prevents the user from tampering the query parameters of that unsubscribe link. Macaroon generation is refactored: - Centralised all macaroon generation and verification logic to the `MacaroonGenerator` - Moved to `synapse.utils` - Changed the constructor to require only a `Clock`, hostname, and a secret key (instead of a full `Homeserver`). - Added tests for all methods.
-
Quentin Gliech authored
-
- Jun 13, 2022
-
-
David Teller authored
Uniformize spam-checker API, part 4: port other spam-checker callbacks to return `Union[Allow, Codes]`. (#12857) Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
Patrick Cloke authored
Removes the `register_noop_background_update` and deletes the background updates directly in a delta file.
-
- Jun 12, 2022
-
-
Richard van der Hoff authored
Instead, use the `room_version` property of the event we're checking. The `room_version` was originally added as a parameter somewhere around #4482, but really it's been redundant since #6875 added a `room_version` field to `EventBase`.
-
Richard van der Hoff authored
In practice, when we run the auth rules, all of the events have the right room version. Let's stop building Room V1 events for these tests and use the right version.
-
- Jun 10, 2022
-
-
Patrick Cloke authored
The `room_id` field was removed from MSC2946 before it was accepted. It was initially kept for backwards compatibility and should be removed now that the stable form of the API is used. This change only stops Synapse from validating that it is returned, a future PR will remove returning it as part of the response.
-
- Jun 09, 2022
-
-
David Robertson authored
-
- Jun 08, 2022
-
-
Patrick Cloke authored
MSC3715 defines this parameter, but the unstable version of it should be behind an experimental flag.
-
- Jun 07, 2022
-
-
Sean Quah authored
* Reword failure message about `await_result=False` * Use `reactor.advance()` instead of `reactor.pump()` * Raise `AssertionError`s ourselves * Un-instance method `_test_disconnect` * Replace `ThreadedMemoryReactorClock` with `MemoryReactorClock`
-
Sean Quah authored
* Add tests for `/rooms/<room_id>/members` cancellation. * Add tests for `/rooms/<room_id>/state` cancellation. Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
By always using delete_devices and sometimes passing a list with a single device ID. Previously these methods had gotten out of sync with each other and it seems there's little benefit to the single-device variant.
-
Andrew Morgan authored
-
- Jun 06, 2022
-
-
Patrick Cloke authored
* Remove an unused stream ID generator. * Remove the now unused remote profile cache.
-
Erik Johnston authored
Reducing the amount of state we pull from the DB is useful as fetching state is expensive in terms of DB, CPU and memory.
-
Patrick Cloke authored
Avoid breaking a URL preview completely if the chosen image 404s or is unreachable for some other reason (e.g. DNS).
-
Patrick Cloke authored
As opposed to only considering a user to have "participated" if they replied to the thread.
-
Erik Johnston authored
-
- Jun 03, 2022
-
-
Patrick Cloke authored
* Skip `og` and `meta` tags where the value is empty. * Fallback to the favicon if there are no other images. * Ignore tags meant for navigation.
-