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
This commit is contained in:
kaniini 2018-10-26 01:36:07 +00:00
commit 2d957b985f

View file

@ -37,6 +37,11 @@ def recipient_in_message(ap_id, params) 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