mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-02-03 04:42:25 +00:00
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:
commit
2d957b985f
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
||||||
recipient_in_collection(ap_id, params["bcc"]) ->
|
recipient_in_collection(ap_id, params["bcc"]) ->
|
||||||
true
|
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 ->
|
true ->
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue