Add test.

This commit is contained in:
lain 2018-05-13 11:18:48 +02:00
commit ec531ca281
2 changed files with 11 additions and 1 deletions

View file

@ -327,7 +327,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
activity in query,
where:
fragment(
"not (?->'cc' \\?| ?)",
"(?->'to' \\?| ?)",
activity.data,
^["https://www.w3.org/ns/activitystreams#Public"]
)