浏览代码

Ensure that GS/pA background is set

Bob Mottram 7 年前
父节点
当前提交
d724d433fc
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4
    0
      src/freedombone-app-gnusocial
  2. 4
    0
      src/freedombone-app-postactiv

+ 4
- 0
src/freedombone-app-gnusocial 查看文件

@@ -819,6 +819,10 @@ function install_gnusocial {
819 819
     # And doesn't forget logins
820 820
     gnusocial_use_qvitter gnusocial
821 821
 
822
+    if [ $GNUSOCIAL_BACKGROUND_IMAGE_URL ]; then
823
+        pleroma_set_background_image_from_url "$GNUSOCIAL_DOMAIN_NAME" "$GNUSOCIAL_BACKGROUND_IMAGE_URL" "$GNUSOCIAL_TITLE"
824
+    fi
825
+
822 826
     APP_INSTALLED=1
823 827
 }
824 828
 

+ 4
- 0
src/freedombone-app-postactiv 查看文件

@@ -836,6 +836,10 @@ function install_postactiv {
836 836
     # And doesn't forget logins
837 837
     gnusocial_use_qvitter postactiv
838 838
 
839
+    if [ $POSTACTIV_BACKGROUND_IMAGE_URL ]; then
840
+        pleroma_set_background_image_from_url "$POSTACTIV_DOMAIN_NAME" "$POSTACTIV_BACKGROUND_IMAGE_URL" "$POSTACTIV_TITLE"
841
+    fi
842
+
839 843
     APP_INSTALLED=1
840 844
 }
841 845