From: William Pitcock Date: Fri, 26 Oct 2018 01:24:22 +0000 (+0000) Subject: activitypub utils: fix recipient check when the message is unaddressed (mastodon) X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f6cb963df208a1f24aa195fda4ed894caac9e7bc;p=akkoma activitypub utils: fix recipient check when the message is unaddressed (mastodon) --- diff --git a/lib/pleroma/web/activity_pub/utils.ex b/lib/pleroma/web/activity_pub/utils.ex index 266667f81..d6ac2dd8c 100644 --- 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