diff options
author | rinpatch <rinpatch@sdf.org> | 2019-08-07 00:12:42 +0300 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-08-14 01:50:21 +0000 |
commit | b85840b536f9be391120db5d3e0e7934c8ed9390 (patch) | |
tree | 9d9708bc39a99c1f56be372b27f6925df6a763bd | |
parent | a7b947534cc998486b82c721849bfc9aceb5178f (diff) | |
download | pleroma-b85840b536f9be391120db5d3e0e7934c8ed9390.tar.gz |
Stop depending on the embedded object in restrict_favorited_by
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index fcecbe21d..f9ab06bf8 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -733,8 +733,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do defp restrict_favorited_by(query, %{"favorited_by" => ap_id}) do from( - activity in query, - where: fragment(~s(? <@ (? #> '{"object","likes"}'\)), ^ap_id, activity.data) + [_activity, object] in query, + where: fragment("(?)->'likes' \\? (?)", object.data, ^ap_id) ) end |