X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=inline;f=docs%2Fconfiguration%2Fmrf.md;h=d965bd53ed3b364cfe16c89143d1a334838251a7;hb=589bffa57d30b1133f951d0a6788c6f956f798a6;hp=80cfaaa84a731b8f651a623e45b00f25f1aacbbf;hpb=88a76d0142075dbd71314b8e601a8d347d2f45e9;p=akkoma diff --git a/docs/configuration/mrf.md b/docs/configuration/mrf.md index 80cfaaa84..d965bd53e 100644 --- a/docs/configuration/mrf.md +++ b/docs/configuration/mrf.md @@ -74,7 +74,7 @@ As discussed above, the MRF system is a modular system that supports pluggable p For example, here is a sample policy module which rewrites all messages to "new message content": ```elixir -defmodule Site.RewritePolicy do +defmodule Pleroma.Web.ActivityPub.MRF.RewritePolicy do @moduledoc "MRF policy which rewrites all Notes to have 'new message content'." @behaviour Pleroma.Web.ActivityPub.MRF @@ -111,9 +111,7 @@ defmodule Site.RewritePolicy do @impl true def describe do - mrf_sample = Pleroma.Config.get(:mrf_sample) - - {:ok, %{mrf_sample: mrf_sample}} + {:ok, %{mrf_sample: %{content: "new message content"}}}` end end ``` @@ -124,7 +122,7 @@ If you save this file as `lib/pleroma/web/activity_pub/mrf/rewrite_policy.ex`, i config :pleroma, :instance, rewrite_policy: [ Pleroma.Web.ActivityPub.MRF.SimplePolicy, - Site.RewritePolicy + Pleroma.Web.ActivityPub.MRF.RewritePolicy ] ```