mirror of
https://github.com/m1k1o/neko.git
synced 2026-11-03 00:11:48 -06:00
feat: add openinapp plugin to open chat links in shared neko instance (#682)
* feat: add openinapp plugin to open chat links in shared neko instance * lint. * feat(openinapp): implement open link handler and route for opening links. * feat(openinapp): switched to http backend and removed example in docker-compose.yaml * lint. --------- Co-authored-by: Miroslav Šedivý <sedivy.miro@gmail.com>
This commit is contained in:
@@ -79,3 +79,19 @@ plugins:
|
||||
```
|
||||
|
||||
- `filetransfer.enabled` in the room settings context controls whether the file transfer is enabled for any user in the room, and in the user's profile context controls whether the user can transfer files.
|
||||
|
||||
## Open In App Plugin {#openinapp}
|
||||
|
||||
The open in app plugin allows users to open links directly from the chat inside the shared neko instance.
|
||||
|
||||
<ConfigurationTab options={{
|
||||
'openinapp.enabled': true,
|
||||
'openinapp.open_command': 'xdg-open',
|
||||
}} />
|
||||
|
||||
- <Def id="openinapp.enabled" /> enables the open in app support.
|
||||
If set to `false`, the feature is hidden from all clients.
|
||||
- <Def id="openinapp.open_command" /> is the shell command used to open
|
||||
URLs inside the neko instance. Defaults to `xdg-open`. Can be set to a
|
||||
browser-specific command such as `firefox -P default` depending on
|
||||
the app image in use.
|
||||
Reference in New Issue
Block a user