activitypub utils: fix recipient check when the message is unaddressed (mastodon)
This commit is contained in:
parent
72031e80d7
commit
f6cb963df2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user