discourse/plugins/chat/app
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
..
controllers/chat PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
helpers/chat DEV: removes default service actions (#26078) 2024-03-07 12:10:43 +01:00
jobs FIX: Use user's locale for chat push notifications (#26107) 2024-03-08 15:18:47 -06:00
models FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
policies DEV: Migrate `Chat::MessageCreator` to a service (#22390) 2023-09-07 08:57:29 +02:00
queries/chat FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
serializers/chat FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
services FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
validators/chat DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
views FIX: correctly uses private_email site setting in chat (#24528) 2023-11-23 15:54:22 +01:00