mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-18 13:24:15 +00:00
Merge branch 'master' into feature/ignore-avatars-stickers
This commit is contained in:
commit
fcc62a7fe7
@ -1,24 +1,11 @@
|
|||||||
services:
|
services:
|
||||||
signal-cli-rest-api:
|
signal-cli-rest-api:
|
||||||
#image: bbernhard/signal-cli-rest-api:latest-dev
|
image: bbernhard/signal-cli-rest-api:latest
|
||||||
build: "."
|
|
||||||
environment:
|
environment:
|
||||||
- MODE=normal #supported modes: json-rpc, json-rpc-native, native, normal
|
- MODE=normal #supported modes: json-rpc, native, normal
|
||||||
- ENABLE_PLUGINS=true
|
|
||||||
- DEFAULT_SIGNAL_TEXT_MODE=styled
|
|
||||||
- SWAGGER_IP=127.0.0.1
|
|
||||||
- PODMAN_USERNS=keep-id
|
|
||||||
#- JSON_RPC_IGNORE_ATTACHMENTS=true
|
|
||||||
#- JSON_RPC_IGNORE_STORIES=true
|
|
||||||
#- JSON_RPC_IGNORE_AVATARS=true
|
|
||||||
#- JSON_RPC_IGNORE_STICKERS=true
|
|
||||||
#- RECEIVE_WEBHOOK_URL=http://127.0.0.1:8089/webhook
|
|
||||||
#- JSON_RPC_TRUST_NEW_IDENTITIES=always
|
|
||||||
#- RECEIVE_WEBHOOK_URL=http://127.0.0.1:8080/v1/plugins/abc
|
|
||||||
#- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below)
|
#- AUTO_RECEIVE_SCHEDULE=0 22 * * * #enable this parameter on demand (see description below)
|
||||||
#network_mode: host
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080" #map docker port 8080 to host port 8080.
|
- "8080:8080" #map docker port 8080 to host port 8080.
|
||||||
volumes:
|
volumes:
|
||||||
- "./signal-cli-config:/home/.local/share/signal-cli" #map "signal-cli-config" folder on host system into docker container. the folder contains the password and cryptographic keys when a new number is registered
|
- "./signal-cli-config:/home/.local/share/signal-cli" #map "signal-cli-config" folder on host system into docker container. the folder contains the password and cryptographic keys when a new number is registered
|
||||||
- "./plugins:/plugins"
|
|
||||||
|
|||||||
@ -857,7 +857,6 @@ func (a *Api) AddMembersToGroup(c *gin.Context) {
|
|||||||
|
|
||||||
err = a.signalClient.AddMembersToGroup(number, groupId, req.Members)
|
err = a.signalClient.AddMembersToGroup(number, groupId, req.Members)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Info("ERR NOT NULL")
|
|
||||||
switch err.(type) {
|
switch err.(type) {
|
||||||
case *client.NotFoundError:
|
case *client.NotFoundError:
|
||||||
c.JSON(404, Error{Msg: err.Error()})
|
c.JSON(404, Error{Msg: err.Error()})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user