forked from AkkomaGang/akkoma
guppie
This commit is contained in:
parent
21765150ad
commit
ccb7973b8b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue