Skip to content
Snippets Groups Projects
  1. Sep 22, 2021
  2. Sep 21, 2021
    • Patrick Cloke's avatar
      Refactor oEmbed previews (#10814) · ba7a91ae
      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.
      ba7a91ae
    • David Robertson's avatar
      Always add local users to the user directory (#10796) · 60453315
      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: default avatarRichard van der Hoff <1389908+richvdh@users.noreply.github.com>
      60453315
  3. Sep 17, 2021
  4. Sep 13, 2021
  5. Sep 10, 2021
  6. Sep 08, 2021
  7. Sep 07, 2021
  8. Sep 06, 2021
  9. Sep 02, 2021
  10. Sep 01, 2021
  11. Aug 31, 2021
  12. Aug 27, 2021
  13. Aug 26, 2021
  14. Aug 23, 2021
  15. Aug 21, 2021
  16. Aug 19, 2021
  17. Aug 18, 2021
  18. Aug 17, 2021
  19. Aug 16, 2021
  20. Aug 11, 2021
  21. Aug 09, 2021
  22. Aug 06, 2021
  23. Aug 05, 2021
Loading