Skip to content
Snippets Groups Projects
  1. Jan 29, 2025
  2. Jan 22, 2025
  3. Jan 14, 2025
  4. Jan 07, 2025
  5. Jan 06, 2025
  6. Jan 03, 2025
    • Patrick Cloke's avatar
      Refactor get_profile: do not return missing fields. (#18063) · 6306de8e
      Patrick Cloke authored
      Refactor `get_profile` to avoid returning "empty" (`None` / `null`)
      fields. Currently this is not very important, but will be more useful
      once #17488 lands. It does update the servlet to use this now which has
      a minor change in behavior: additional fields served over federation
      will now be properly sent back to clients.
      
      It also adds constants for `avatar_url` / `displayname` although I did
      not attempt to use it everywhere possible.
      6306de8e
    • Shay's avatar
      Add a test to verify remote user messages can be redacted via admin api... · b5267678
      Shay authored
      Add a test to verify remote user messages can be redacted via admin api redaction endpoint if requester is admin in room (#18043)
      
      b5267678
  7. Dec 23, 2024
  8. Dec 20, 2024
    • Colin Watson's avatar
      Stop using twisted.internet.defer.returnValue (#18020) · d69c00b5
      Colin Watson authored
      `defer.returnValue` was only needed in Python 2; in Python 3, a simple
      `return` is fine.
      
      `twisted.internet.defer.returnValue` is deprecated as of Twisted 24.7.0.
      
      Most uses of `returnValue` in synapse were removed a while back; this
      cleans up some remaining bits.
      d69c00b5
  9. Dec 19, 2024
  10. Dec 18, 2024
    • Andrew Morgan's avatar
      Fix mypy errors on Twisted 24.11.0 (#17998) · 3eb92369
      Andrew Morgan authored
      Fixes various `mypy` errors associated with Twisted `24.11.0`.
      
      Hopefully addresses https://github.com/element-hq/synapse/issues/17075,
      though I've yet to test against `trunk`.
      
      Changes should be compatible with our currently pinned Twisted version
      of `24.7.0`.
      3eb92369
    • Andrew Morgan's avatar
      Wording improvements for the `TaskScheduler` (#17992) · 09f377fa
      Andrew Morgan authored
      As I found the current docstrings a bit unclear while trying to wrap my
      head around this class.
      09f377fa
    • Andrew Morgan's avatar
      Bump mypy from 1.11.2 to 1.12.1 and fix new typechecking errors (#17999) · f1b0f9a4
      Andrew Morgan authored
      Supersedes https://github.com/element-hq/synapse/pull/17958.
      
      Awkwardly, the changes made to fix the mypy errors in 1.12.1 cause
      errors in 1.11.2. So you'll need to update your mypy version to 1.12.1
      to eliminate typechecking errors during developing.
      f1b0f9a4
    • cynhr's avatar
      Add email.tlsname config option (#17849) · f1ecf466
      cynhr authored
      The existing `email.smtp_host` config option is used for two distinct
      purposes: it is resolved into the IP address to connect to, and used to
      (request via SNI and) validate the server's certificate if TLS is
      enabled. This new option allows specifying a different name for the
      second purpose.
      
      This is especially helpful, if `email.smtp_host` isn't a global FQDN,
      but something that resolves only locally (e.g. "localhost" to connect
      through the loopback interface, or some other internally routed name),
      that one cannot get a valid certificate for.
      Alternatives would of course be to specify a global FQDN as
      `email.smtp_host`, or to disable TLS entirely, both of which might be
      undesirable, depending on the SMTP server configuration.
      f1ecf466
  11. Dec 17, 2024
    • V02460's avatar
      Add `macaroon_secret_key_path` config option (#17983) · 57bf4494
      V02460 authored
      Another config option on my quest to a `*_path` variant for every
      secret. This time it’s `macaroon_secret_key_path`.
      
      Reading secrets from files has the security advantage of separating the secrets from the config. It also simplifies secrets management in Kubernetes. Also useful to NixOS users.
      57bf4494
Loading