1. 28 Aug, 2021 4 commits
    • Ilja's avatar
      Selecting MRF policies didn't work as intended any more · 20084329
      Ilja authored
      * Policies were put under a new module (Pleroma.Web.ActivityPub.MRF.Policy instead of Pleroma.Web.ActivityPub.MRF), but this wasn't changed in the Pleroma.Web.ActivityPub.MRF @mrf_config_descriptions
      * I don't have a unit test to prevent similar problems in the future because I don't find a proper way to do it
          * The descriptions in the unit tests are defined in the unit tests, so if someone changes module names in the code, the tests wont see it
          * The list is generated in Pleroma.Docs.Generator.list_behaviour_implementations, but I can't do a check in the when clause of the function to see if the provided module is a behaviour or not.
      Backport of: !3509
    • Tusooa Zhu's avatar
      Make activity search properly use GIN indexes · bd0eb1c6
      Tusooa Zhu authored
      The original approach to search in GIN indexes is to use
      `to_tsvector(text)` in the WHERE clause of the query. According to
      postgres docs [pdoc], this method does not make use of the index,
      while `to_tsvector(config, text)` does. This commit changed the
      query to use the two-argument `to_tsvector()`.
      [pdoc]: https://www.postgresql.org/docs/12/textsearch-tables.html
      To obtain the search config in use, we make a query to the db first.
      The `::regconfig::oid` hack is needed because Postgrex does not support
      regconfig type directly [postgrexbug]. I use the conversion from and to
      `oid` instead of `text` because I tested in the actual DB and querying
      using the conversion via `text` is slow just as the one-argument
      `to_tsvector()` variant.
      [postgrexbug]: https://github.com/elixir-ecto/postgrex/issues/502
      Backport of: !3519
      Closes: #2758
    • Ilja's avatar
      List available frontends also when no static/frontends folder is present yet · 53b0dd4e
      Ilja authored
      * To see what front ends are installed, it ls static/frontends. When this folder doesn't exists yet, it will return an empty array.
      * Installing still works since the folder is created during installation already
      Backport of: !3510
    • Sam Therapy's avatar
      Add Admin-FE menu for StealEmojiPolicy · 09c42ce1
      Sam Therapy authored
      Backport of: !3512
  2. 13 Aug, 2021 9 commits
  3. 08 Aug, 2021 2 commits
  4. 06 Aug, 2021 1 commit
  5. 01 Aug, 2021 2 commits
  6. 27 Jul, 2021 7 commits
  7. 22 Jul, 2021 1 commit
  8. 14 Jul, 2021 8 commits
  9. 12 Jul, 2021 3 commits
  10. 08 Jul, 2021 2 commits
  11. 06 Jul, 2021 1 commit