Skip to content
Snippets Groups Projects
Commit f6cb963d authored by kaniini's avatar kaniini
Browse files

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

parent 72031e80
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment