This commit is contained in:
beefox 2023-01-05 00:33:14 +11:00
parent 21765150ad
commit ccb7973b8b

View file

@ -22,8 +22,10 @@ def filter(
} = message
) do
Logger.debug("GUPPE ACTOR #{inspect(actor)}")
if actor =~ "https://a.gup.pe/u/" do
child = Object.get_by_ap_id(object).data
Logger.debug("GUPPE OBJECT #{inspect(child)}")
if child["inReplyTo"] != nil do
Logger.debug("GUPPE REJECT #{object}")
{:reject, message}
@ -31,7 +33,6 @@ def filter(
Logger.debug("GUPPE ALLOW #{object}")
{:ok, message}
end
{:ok, message}
else
{:ok, message}
end