Pārlūkot izejas kodu

Remove unused nsfw plugin

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
f1bf180a6e
1 mainītis faili ar 0 papildinājumiem un 47 dzēšanām
  1. 0
    47
      src/freedombone-app-gnusocial

+ 0
- 47
src/freedombone-app-gnusocial Parādīt failu

50
 SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
50
 SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
51
 SHARINGS_THEME_COMMIT='7106c7ef03'
51
 SHARINGS_THEME_COMMIT='7106c7ef03'
52
 
52
 
53
-# NSFW plugin
54
-GNUSOCIAL_NSFW_REPO="https://gitgud.io/ShitposterClub/SensitiveContent"
55
-GNUSOCIAL_NSFW_COMMIT='a096bbe0cfae9a9b177682920ffb58d32a48e136'
56
-
57
 GNUSOCIAL_TITLE='Pleroma FE'
53
 GNUSOCIAL_TITLE='Pleroma FE'
58
 
54
 
59
 # Number of months after which posts expire
55
 # Number of months after which posts expire
931
     install_completed gnusocial_markdown
927
     install_completed gnusocial_markdown
932
 }
928
 }
933
 
929
 
934
-function install_gnusocial_plugin_nsfw {
935
-    if [ ! -d /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins ]; then
936
-        echo $'No local/plugins directory found for the gnusocial'
937
-        exit 37252
938
-    fi
939
-
940
-    # update to the next commit
941
-    function_check set_repo_commit
942
-    set_repo_commit /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins "gnusocial NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT" $GNUSOCIAL_NSFW_REPO
943
-
944
-    if [[ $(is_completed $FUNCNAME) == "1" ]]; then
945
-        return
946
-    fi
947
-
948
-    cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins
949
-    function_check git_clone
950
-    git_clone $GNUSOCIAL_NSFW_REPO SensitiveContent
951
-    if [ ! -d /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins/SensitiveContent ]; then
952
-        echo $'Unable to clone gnusocial NSFW plugin'
953
-        exit 36738
954
-    fi
955
-
956
-    cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/local/plugins/SensitiveContent
957
-    git stash
958
-    git checkout master
959
-    git branch -D $GNUSOCIAL_NSFW_COMMIT
960
-    git checkout $GNUSOCIAL_NSFW_COMMIT -b $GNUSOCIAL_NSFW_COMMIT
961
-
962
-    # enable the plugin
963
-    if ! grep -q "addPlugin('SensitiveContent');" /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php; then
964
-        echo "addPlugin('SensitiveContent');" >> /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs/config.php
965
-    fi
966
-
967
-    cd /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
968
-    php scripts/checkschema.php
969
-
970
-    chown -R www-data:www-data /var/www/$GNUSOCIAL_DOMAIN_NAME/htdocs
971
-
972
-    set_completion_param "gnusocial NSFW plugin commit" "$GNUSOCIAL_NSFW_COMMIT"
973
-    install_completed gnusocial_plugin_nsfw
974
-}
975
-
976
 function install_gnusocial {
930
 function install_gnusocial {
977
     if [ ! $ONION_ONLY ]; then
931
     if [ ! $ONION_ONLY ]; then
978
         ONION_ONLY='no'
932
         ONION_ONLY='no'
984
     install_gnusocial_markdown
938
     install_gnusocial_markdown
985
     #install_gnusocial_plugin_sharings
939
     #install_gnusocial_plugin_sharings
986
     #install_gnusocial_plugin_sharings_theme
940
     #install_gnusocial_plugin_sharings_theme
987
-    #install_gnusocial_plugin_nsfw
988
 
941
 
989
     # Currently Pleroma won't install on ARM systems
942
     # Currently Pleroma won't install on ARM systems
990
     # because it uses node-sass which doesn't support ARM
943
     # because it uses node-sass which doesn't support ARM