From: lain Date: Sat, 17 Feb 2018 09:26:44 +0000 (+0100) Subject: Fix specs. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=5a371892a031ecc7359ff45d1119ae41a20f46dd;p=akkoma Fix specs. --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 4848cc542..b6a2d6c5e 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -139,6 +139,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end defp restrict_tag(query, _), do: query + defp restrict_recipients(query, []), do: query defp restrict_recipients(query, recipients) do from activity in query, where: fragment("? && ?", ^recipients, activity.recipients) diff --git a/test/support/factory.ex b/test/support/factory.ex index 7f378915e..1445fe828 100644 --- a/test/support/factory.ex +++ b/test/support/factory.ex @@ -52,7 +52,8 @@ defmodule Pleroma.Factory do %Pleroma.Activity{ data: data, - actor: data["actor"] + actor: data["actor"], + recipients: data["to"] } end