feat: allow admins to disable the chat window
The commit adds the option to allow instance admins to enable or disbale the chat window at the bottom right of the page. By default the chat window is enabled. This resolves dananglin/pleroma-ansible-playbook#10
This commit is contained in:
parent
c9aad82027
commit
309a569c00
4 changed files with 12 additions and 2 deletions
|
@ -14,6 +14,7 @@ pleroma_defaults:
|
|||
remotePostRetentionDays: 90
|
||||
logLevel: info
|
||||
federating: "true"
|
||||
chatEnabled: "true"
|
||||
mrf:
|
||||
simplePolicy:
|
||||
reject: []
|
||||
|
|
4
roles/pleroma-main/handlers/main.yml
Normal file
4
roles/pleroma-main/handlers/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- name: restart pleroma
|
||||
service:
|
||||
name: pleroma
|
||||
state: restarted
|
|
@ -140,6 +140,7 @@
|
|||
find /tmp/release/ -mindepth 1 -maxdepth 1 | xargs -I dir mv dir {{ pleroma_user.home }}
|
||||
args:
|
||||
creates: "{{ pleroma_user.home }}/bin/pleroma"
|
||||
notify: "restart pleroma"
|
||||
when: enable_pleroma_installation is defined
|
||||
|
||||
- name: Ensuring the configuration file is set.
|
||||
|
@ -149,6 +150,7 @@
|
|||
owner: "{{ pleroma_user.name }}"
|
||||
group: "{{ pleroma_user.group }}"
|
||||
mode: '0400'
|
||||
notify: "restart pleroma"
|
||||
|
||||
- name: Running database migrations.
|
||||
command:
|
||||
|
@ -171,6 +173,7 @@
|
|||
owner: "{{ pleroma_user.name }}"
|
||||
group: "{{ pleroma_user.group }}"
|
||||
mode: '0400'
|
||||
notify: "restart pleroma"
|
||||
when: pleroma.config.frontend.background|length
|
||||
|
||||
- name: Ensuring that the custom themes are uploaded.
|
||||
|
@ -198,12 +201,12 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: '0700'
|
||||
notify: "restart pleroma"
|
||||
|
||||
- name: Ensuring that the Pleroma service is enabled and started.
|
||||
- name: Ensuring that the Pleroma service is enabled.
|
||||
service:
|
||||
name: pleroma
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: Cleaning up
|
||||
file:
|
||||
|
|
|
@ -110,3 +110,5 @@ config :pleroma, :mrf_simple,
|
|||
"{{ item }}"{{ "," if not loop.last else "" }}
|
||||
{% endfor %}
|
||||
]
|
||||
|
||||
config :pleroma, :chat, enabled: {{ pleroma.config.chatEnabled }}
|
||||
|
|
Reference in a new issue