- Oct 26, 2021
-
-
Brendan Abolivier authored
Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
Jason Robinson authored
Users admin API can now also modify user type in addition to allowing it to be set on user creation. Signed-off-by:
Jason Robinson <jasonr@matrix.org> Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
- Oct 21, 2021
-
-
Patrick Cloke authored
Adds experimental support for MSC3440's `io.element.thread` relation type (and the aggregation for it).
-
Dirk Klimpel authored
Fix setting a user's external_id via the admin API returns 500 and deletes users existing external mappings if that external ID is already mapped (#11051) Fixes #10846
-
- Oct 20, 2021
-
-
Aaron R authored
-
- Oct 14, 2021
-
-
Patrick Cloke authored
-
reivilibre authored
Add a test for a workaround concerning the behaviour of third-party rule modules and `SynapseError`s. (#11071)
-
- Oct 13, 2021
-
-
Patrick Cloke authored
-
- Oct 12, 2021
-
-
Dirk Klimpel authored
-
Sean Quah authored
-
- Oct 08, 2021
-
-
Patrick Cloke authored
Searches the returned HTML for an oEmbed endpoint using the autodiscovery mechanism (`<link rel=...>`), and will request it to generate the preview.
-
- Oct 06, 2021
-
-
Brendan Abolivier authored
This is in the context of creating new module callbacks that modules in https://github.com/matrix-org/synapse-dinsic can use, in an effort to reconcile the spam checker API in synapse-dinsic with the one in mainline. Note that a module callback already exists for 3pid invites (https://matrix-org.github.io/synapse/develop/modules/third_party_rules_callbacks.html#check_threepid_can_be_invited) but it doesn't check whether the sender of the invite is allowed to send it.
-
Brendan Abolivier authored
Co-authored-by:
Erik Johnston <erik@matrix.org>
-
- Oct 04, 2021
-
-
AndrewFerr authored
Signed-off-by:
Andrew Ferrazzutti <fair@miscworks.net>
-
David Robertson authored
* Introduce `should_include_local_users_in_dir` We exclude three kinds of local users from the user_directory tables. At present we don't consistently exclude all three in the same places. This commit introduces a new function to gather those exclusion conditions together. Because we have to handle local and remote users in different ways, I've made that function only consider the case of remote users. It's the caller's responsibility to make the local versus remote distinction clear and correct. A test fixup is required. The test now hits a path which makes db queries against the users table. The expected rows were missing, because we were using a dummy user that hadn't actually been registered. We also add new test cases to covert the exclusion logic. ---- By my reading this makes these changes: * When an app service user registers or changes their profile, they will _not_ be added to the user directory. (Previously only support and deactivated users were excluded). This is consistent with the logic that rebuilds the user directory. See also [the discussion here](https://github.com/matrix-org/synapse/pull/10914#discussion_r716859548 ). * When rebuilding the directory, exclude support and disabled users from room sharing tables. Previously only appservice users were excluded. * Exclude all three categories of local users when rebuilding the directory. Previously `_populate_user_directory_process_users` didn't do any exclusion. Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
Patrick Cloke authored
-
- Oct 01, 2021
-
-
David Robertson authored
* type-hint `HomeserverTestcase.setup_test_homeserver` For better IDE completion. A small drive-by.
-
- Sep 29, 2021
-
-
Patrick Cloke authored
-
Travis Ralston authored
-
Sean Quah authored
-
- Sep 27, 2021
-
-
Sean Quah authored
URL cache files are short-lived and it does not make sense to offload them (eg. to the cloud) or back them up.
-
- Sep 24, 2021
-
-
Brendan Abolivier authored
This is in the context of creating new module callbacks that modules in https://github.com/matrix-org/synapse-dinsic can use, in an effort to reconcile the spam checker API in synapse-dinsic with the one in mainline. This adds a callback that's fairly similar to user_may_create_room except it also allows processing based on the invites sent at room creation.
-
Patrick Cloke authored
-
Erik Johnston authored
-
- Sep 23, 2021
-
-
Callum Brown authored
Per updates to MSC3231 in order to use the same grammar as other identifiers.
-
Patrick Cloke authored
-
Patrick Cloke authored
This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables.
-
- Sep 22, 2021
-
-
Patrick Cloke authored
* Improved titles (fall back to the author name if there's not title) and include the site name. * Handle photo/video payloads. * Include the original URL in the Open Graph response. * Fix the expiration time (by properly converting from seconds to milliseconds).
-
- Sep 21, 2021
-
-
Patrick Cloke authored
-
Patrick Cloke authored
The major change is moving the decision of whether to use oEmbed further up the call-stack. This reverts the _download_url method to being a "dumb" functionwhich takes a single URL and downloads it (as it was before #7920). This also makes more minor refactorings: * Renames internal variables for clarity. * Factors out shared code between the HTML and rich oEmbed previews. * Fixes tests to preview an oEmbed image.
-
Brendan Abolivier authored
Test for #10830 Ideally the test would also make sure the new state event comes down sync, but this is probably good enough.
-
Hillery Shay authored
* add tests for checking if room search works with non-ascii char * change encoding on parse_string to UTF-8 * lints * properly encode search term * lints * add changelog file * update changelog number * set changelog entry filetype to .bugfix * Revert "set changelog entry filetype to .bugfix" This reverts commit be8e5a314251438ec4ec7dbc59ba32162c93e550. * update changelog message and file type * change parse_string default encoding back to ascii and update room search admin api calll to parse string * refactor tests * Update tests/rest/admin/test_room.py Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
David Robertson authored
It's a simplification, but one that'll help make the user directory logic easier to follow with the other changes upcoming. It's not strictly required for those changes, but this will help simplify the resulting logic that listens for `m.room.member` events and generally make the logic easier to follow. This means the config option `search_all_users` ends up controlling the search query only, and not the data we store. The cost of doing so is an extra row in the `user_directory` and `user_directory_search` tables for each local user which - belongs to no public rooms - belongs to no private rooms of size ≥ 2 I think the cost of this will be marginal (since they'll already have entries in `users` and `profiles` anyway). As a small upside, a homeserver whose directory was built with this change can toggle `search_all_users` without having to rebuild their directory. Co-authored-by:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-
Aaron Raimist authored
* Allow membership event to unban user Signed-off-by:
Aaron Raimist <aaron@raim.ist>
-
- Sep 16, 2021
-
-
Patrick Cloke authored
To avoid duplicating it between a few tests.
-
- Sep 13, 2021
-
-
Patrick Cloke authored
Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
-
- Sep 10, 2021
-
-
Patrick Cloke authored
By copying the `room_type` field of the create event and migrating any non-empty `m.space.child` events to the new room that is created.
-
- Sep 09, 2021
-
-
Sean authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
- Sep 08, 2021
-
-
Patrick Cloke authored
This adds the format to the request arguments / URL to ensure that JSON data is returned (which is all that Synapse supports). This also adds additional error checking / filtering to the configuration file to ignore XML-only providers.
-
- Aug 31, 2021
-
-
Patrick Cloke authored
This adds configuration options (under an `oembed` section) to configure which URLs are matched to use oEmbed for URL previews.
-