discourse/plugins
Sam e3a0faefc5
FEATURE: allow re-scoping chat user search via a plugin (#26361)
This enables the following in Discourse AI

```
 plugin.register_modifier(:chat_allowed_bot_user_ids) do |user_ids, guardian|
  if guardian.user
    mentionables = AiPersona.mentionables(user: guardian.user)
    allowed_bot_ids = mentionables.map { |mentionable| mentionable[:user_id] }
    user_ids.concat(allowed_bot_ids)
  end
  user_ids
end
```

some bots that are id < 0 need to be discoverable in search otherwise people can not talk to them.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2024-03-27 08:55:53 +11:00
..
chat FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
checklist DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
discourse-details DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
discourse-lazy-videos DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
discourse-local-dates FIX: missing IST KST and JST timezones in cooked posts (#26252) 2024-03-20 11:28:45 +11:00
discourse-narrative-bot Update translations (#26368) 2024-03-26 16:30:01 +01:00
discourse-presence DEV: Use the "new" service import (#26059) 2024-03-06 18:05:11 +01:00
footnote DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
poll Update translations (#26368) 2024-03-26 16:30:01 +01:00
spoiler-alert DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
styleguide Update translations (#26136) 2024-03-12 15:40:11 +01:00