From: lain Date: Thu, 19 Nov 2020 16:32:57 +0000 (+0100) Subject: Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into websearch X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5e04f4156ce64e5be633fce19c56bec0d93f53bf;p=akkoma Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into websearch --- 5e04f4156ce64e5be633fce19c56bec0d93f53bf diff --cc CHANGELOG.md index 8b41e2272,fc4013fc3..a682036f4 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@@ -22,7 -21,7 +22,8 @@@ The format is based on [Keep a Changelo - Configuration: Add `:instance, autofollowing_nicknames` setting to provide a way to make accounts automatically follow new users that register on the local Pleroma instance. - Ability to view remote timelines, with ex. `/api/v1/timelines/public?instance=lain.com` and streams `public:remote` and `public:remote:media`. - The site title is now injected as a `title` tag like preloads or metadata. + - Password reset tokens now are not accepted after a certain age. +- Added a configuration option to use the postgresql `websearch` function for more complicated search queries.
API Changes diff --cc config/config.exs index 47eb18442,be5257663..8d0545704 --- a/config/config.exs +++ b/config/config.exs @@@ -264,7 -264,7 +264,8 @@@ config :pleroma, :instance ] ], show_reactions: true, - password_reset_token_validity: 60 * 60 * 24 ++ password_reset_token_validity: 60 * 60 * 24, + search_function: :websearch config :pleroma, :welcome, direct_message: [ diff --cc docs/configuration/cheatsheet.md index fa59a27e3,85551362c..1b321d103 --- a/docs/configuration/cheatsheet.md +++ b/docs/configuration/cheatsheet.md @@@ -63,7 -63,7 +63,8 @@@ To add configuration to your config fil * `external_user_synchronization`: Enabling following/followers counters synchronization for external users. * `cleanup_attachments`: Remove attachments along with statuses. Does not affect duplicate files and attachments without status. Enabling this will increase load to database when deleting statuses on larger instances. * `show_reactions`: Let favourites and emoji reactions be viewed through the API (default: `true`). + * `password_reset_token_validity`: The time after which reset tokens aren't accepted anymore, in seconds (default: one day). +* `search_function`: What search function to use for fulltext search. Possible values are `:websearch` and `:plain`. `:websearch` enables more complex search queries, but requires at least PostgreSQL 11. (default: `websearch`) ## Welcome * `direct_message`: - welcome message sent as a direct message.