logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: 2d957b985fcf97fd38f17253a658685841447c1d
parent: 72031e80d7cf5aa6bdfd0604d5b6768c2c25481a
Author: kaniini <nenolod@gmail.com>
Date:   Fri, 26 Oct 2018 01:36:07 +0000

Merge branch 'bugfix/unshared-inbox-check' into 'develop'

activitypub utils: fix recipient check when the message is unaddressed (mastodon)

See merge request pleroma/pleroma!392

Diffstat:

Mlib/pleroma/web/activity_pub/utils.ex5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex @@ -37,6 +37,11 @@ defmodule Pleroma.Web.ActivityPub.Utils do recipient_in_collection(ap_id, params["bcc"]) -> true + # if the message is unaddressed at all, then assume it is directly addressed + # to the recipient + !params["to"] && !params["cc"] && !params["bto"] && !params["bcc"] -> + true + true -> false end