Skip to content
Snippets Groups Projects
Commit 95c8bd69 authored by Bob Mottram's avatar Bob Mottram
Browse files

Include both SimplePolicy and KeywordPolicy in pleroma filter

parent d2fc406b
No related branches found
No related tags found
No related merge requests found
......@@ -763,7 +763,7 @@ function pleroma_create_config {
echo ' "text/html",';
echo ' "text/markdown"';
echo ' ],';
echo ' rewrite_policy: Pleroma.Web.ActivityPub.MRF.SimplePolicy';
echo ' rewrite_policy: [ Pleroma.Web.ActivityPub.MRF.SimplePolicy, Pleroma.Web.ActivityPub.MRF.KeywordPolicy ]';
echo '';
echo 'config :pleroma, :mrf_simple,';
echo ' media_removal: [],';
......@@ -1555,6 +1555,10 @@ function upgrade_pleroma {
echo ' replace: []'; } >> $pleroma_secret
fi
if ! grep -q 'MRF.KeywordPolicy' "$pleroma_secret"; then
sed -i 's|rewrite_policy:.*|rewrite_policy: [ Pleroma.Web.ActivityPub.MRF.SimplePolicy, Pleroma.Web.ActivityPub.MRF.KeywordPolicy ]|g' "$pleroma_secret"
fi
pleroma_recompile
# migrate database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment