|  | @@ -50,10 +50,6 @@ SHARINGS_COMMIT='d5c6c7f855d9afff9086c09ea706f38c859bc0d4'
 | 
	
		
			
			| 50 | 50 |  SHARINGS_THEME_REPO="http://git.lasindias.club/manuel/SharingsTheme"
 | 
	
		
			
			| 51 | 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 | 53 |  GNUSOCIAL_TITLE='Pleroma FE'
 | 
	
		
			
			| 58 | 54 |  
 | 
	
		
			
			| 59 | 55 |  # Number of months after which posts expire
 | 
	
	
		
			
			|  | @@ -931,48 +927,6 @@ function install_gnusocial_markdown {
 | 
	
		
			
			| 931 | 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 | 930 |  function install_gnusocial {
 | 
	
		
			
			| 977 | 931 |      if [ ! $ONION_ONLY ]; then
 | 
	
		
			
			| 978 | 932 |          ONION_ONLY='no'
 | 
	
	
		
			
			|  | @@ -984,7 +938,6 @@ function install_gnusocial {
 | 
	
		
			
			| 984 | 938 |      install_gnusocial_markdown
 | 
	
		
			
			| 985 | 939 |      #install_gnusocial_plugin_sharings
 | 
	
		
			
			| 986 | 940 |      #install_gnusocial_plugin_sharings_theme
 | 
	
		
			
			| 987 |  | -    #install_gnusocial_plugin_nsfw
 | 
	
		
			
			| 988 | 941 |  
 | 
	
		
			
			| 989 | 942 |      # Currently Pleroma won't install on ARM systems
 | 
	
		
			
			| 990 | 943 |      # because it uses node-sass which doesn't support ARM
 |