forked from AkkomaGang/akkoma
guppie
This commit is contained in:
parent
21765150ad
commit
ccb7973b8b
|
@ -22,8 +22,10 @@ defmodule Pleroma.Web.ActivityPub.MRF.DontBoostGuppeReplies do
|
||||||
} = message
|
} = message
|
||||||
) do
|
) do
|
||||||
|
|
||||||
|
Logger.debug("GUPPE ACTOR #{inspect(actor)}")
|
||||||
if actor =~ "https://a.gup.pe/u/" do
|
if actor =~ "https://a.gup.pe/u/" do
|
||||||
child = Object.get_by_ap_id(object).data
|
child = Object.get_by_ap_id(object).data
|
||||||
|
Logger.debug("GUPPE OBJECT #{inspect(child)}")
|
||||||
if child["inReplyTo"] != nil do
|
if child["inReplyTo"] != nil do
|
||||||
Logger.debug("GUPPE REJECT #{object}")
|
Logger.debug("GUPPE REJECT #{object}")
|
||||||
{:reject, message}
|
{:reject, message}
|
||||||
|
@ -31,7 +33,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.DontBoostGuppeReplies do
|
||||||
Logger.debug("GUPPE ALLOW #{object}")
|
Logger.debug("GUPPE ALLOW #{object}")
|
||||||
{:ok, message}
|
{:ok, message}
|
||||||
end
|
end
|
||||||
{:ok, message}
|
|
||||||
else
|
else
|
||||||
{:ok, message}
|
{:ok, message}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue