discourse/plugins/chat
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
..
app FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
assets UX: Ensure all header buttons are consistently sized (#26318) 2024-03-22 12:50:05 +00:00
config Update translations (#26368) 2024-03-26 16:30:01 +01:00
db FEATURE: allows to force a thread (#25987) 2024-03-06 12:03:42 +01:00
lib PERF: defer loading channels (#26155) 2024-03-18 08:35:07 +01:00
public
spec FEATURE: allow re-scoping chat user search via a plugin (#26361) 2024-03-27 08:55:53 +11:00
test/javascripts DEV: Fix typos in a chat service tests (#26239) 2024-03-19 12:07:19 +01:00
README.md
plugin.rb DEV: Remove the last `transpile_js` mentions (#26263) 2024-03-20 15:32:37 +01:00

README.md

This plugin is still in active development and may change frequently

Documentation

The Discourse Chat plugin adds chat functionality to your Discourse so it can natively support both long-form and short-form communication needs of your online community.

For user documentation, see Discourse Chat.

For developer documentation, see Discourse Documentation.