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:
Dan Anglin 2020-03-07 12:21:57 +00:00
parent c9aad82027
commit 309a569c00
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
4 changed files with 12 additions and 2 deletions

View file

@ -14,6 +14,7 @@ pleroma_defaults:
remotePostRetentionDays: 90 remotePostRetentionDays: 90
logLevel: info logLevel: info
federating: "true" federating: "true"
chatEnabled: "true"
mrf: mrf:
simplePolicy: simplePolicy:
reject: [] reject: []

View file

@ -0,0 +1,4 @@
- name: restart pleroma
service:
name: pleroma
state: restarted

View file

@ -140,6 +140,7 @@
find /tmp/release/ -mindepth 1 -maxdepth 1 | xargs -I dir mv dir {{ pleroma_user.home }} find /tmp/release/ -mindepth 1 -maxdepth 1 | xargs -I dir mv dir {{ pleroma_user.home }}
args: args:
creates: "{{ pleroma_user.home }}/bin/pleroma" creates: "{{ pleroma_user.home }}/bin/pleroma"
notify: "restart pleroma"
when: enable_pleroma_installation is defined when: enable_pleroma_installation is defined
- name: Ensuring the configuration file is set. - name: Ensuring the configuration file is set.
@ -149,6 +150,7 @@
owner: "{{ pleroma_user.name }}" owner: "{{ pleroma_user.name }}"
group: "{{ pleroma_user.group }}" group: "{{ pleroma_user.group }}"
mode: '0400' mode: '0400'
notify: "restart pleroma"
- name: Running database migrations. - name: Running database migrations.
command: command:
@ -171,6 +173,7 @@
owner: "{{ pleroma_user.name }}" owner: "{{ pleroma_user.name }}"
group: "{{ pleroma_user.group }}" group: "{{ pleroma_user.group }}"
mode: '0400' mode: '0400'
notify: "restart pleroma"
when: pleroma.config.frontend.background|length when: pleroma.config.frontend.background|length
- name: Ensuring that the custom themes are uploaded. - name: Ensuring that the custom themes are uploaded.
@ -198,12 +201,12 @@
owner: root owner: root
group: root group: root
mode: '0700' mode: '0700'
notify: "restart pleroma"
- name: Ensuring that the Pleroma service is enabled and started. - name: Ensuring that the Pleroma service is enabled.
service: service:
name: pleroma name: pleroma
enabled: yes enabled: yes
state: started
- name: Cleaning up - name: Cleaning up
file: file:

View file

@ -110,3 +110,5 @@ config :pleroma, :mrf_simple,
"{{ item }}"{{ "," if not loop.last else "" }} "{{ item }}"{{ "," if not loop.last else "" }}
{% endfor %} {% endfor %}
] ]
config :pleroma, :chat, enabled: {{ pleroma.config.chatEnabled }}