diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 9786d622..6269e486 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -73,10 +73,10 @@ function pleroma_add_filtering { sed -i '/pbkdf2_rounds/a config :pleroma, :mrf_simple,' $pleroma_secret sed -i '/pbkdf2_rounds/a # begin filtering' $pleroma_secret - sed -i 's|reject: [| reject: [|g' $pleroma_secret - sed -i 's|federated_timeline_removal: [| federated_timeline_removal: [|g' $pleroma_secret - sed -i 's|media_nsfw: [| media_nsfw: [|g' $pleroma_secret - sed -i 's|media_removal: [| media_removal: [|g' $pleroma_secret + sed -i 's|reject: | reject: |g' $pleroma_secret + sed -i 's|federated_timeline_removal: | federated_timeline_removal: |g' $pleroma_secret + sed -i 's|media_nsfw: | media_nsfw: |g' $pleroma_secret + sed -i 's|media_removal: | media_removal: |g' $pleroma_secret create_pleroma_blocklist } @@ -143,9 +143,9 @@ function create_pleroma_blocklist { echo ''; echo "if [ \"\$filter_str\" ]; then"; echo " if ! grep -q \" \$filter_str \" $pleroma_secret; then"; - echo " sed -i \"s|media_removal:.*|media_removal: [ \$filter_str ],|g\" $pleroma_secret"; - echo " sed -i \"s|federated_timeline_removal:.*|federated_timeline_removal: [ \$filter_str ],|g\" $pleroma_secret"; - echo " sed -i \"s|removal:.*|removal: [ \$filter_str ]|g\" $pleroma_secret"; + echo " sed -i \"s| media_removal:.*| media_removal: [ \$filter_str ],|g\" $pleroma_secret"; + echo " sed -i \"s| federated_timeline_removal:.*| federated_timeline_removal: [ \$filter_str ],|g\" $pleroma_secret"; + echo " sed -i \"s| removal:.*| removal: [ \$filter_str ]|g\" $pleroma_secret"; echo " chown -R pleroma:pleroma $PLEROMA_DIR"; echo ' sudo -u pleroma mix clean'; echo ' sudo -u pleroma mix deps.compile';