projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e9f14b
)
Unlisted fetching: Reverse logic
author
lain
<lain@soykaf.club>
Sun, 13 May 2018 09:58:03 +0000
(11:58 +0200)
committer
lain
<lain@soykaf.club>
Sun, 13 May 2018 09:58:03 +0000
(11:58 +0200)
Generates a faster query.
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index 8086c830cb48166e3e6de942d79d83d47bcc250c..d43f85ee4048d19c84acbc91332b1886917e4730 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-327,7
+327,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
activity in query,
where:
fragment(
- "
(?->'to'
\\?| ?)",
+ "
not (coalesce(?->'cc', '{}'::jsonb)
\\?| ?)",
activity.data,
^["https://www.w3.org/ns/activitystreams#Public"]
)