add describe to gab rewrite

This commit is contained in:
sadposter 2019-08-16 10:58:32 +01:00
parent 3fc4b078f2
commit 1da00eb1b0

View file

@ -36,6 +36,9 @@ def add(%{"object" => %{"content" => content}} = object) do
put_in(object, ["object", "content"], content <> " " <> Enum.random(@appends)) put_in(object, ["object", "content"], content <> " " <> Enum.random(@appends))
end end
@impl true
def describe, do: "Appends boomer messages to the end of all statuses coming from gab.com"
@impl true @impl true
def filter(%{"type" => "Create", "actor" => actor} = object) do def filter(%{"type" => "Create", "actor" => actor} = object) do
actor_info = URI.parse(actor) actor_info = URI.parse(actor)