projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332dc13
)
activity: use left join instead of inner join when fetching activities that may or...
author
William Pitcock
<nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:13:19 +0000
(
03:13
+0000)
committer
William Pitcock
<nenolod@dereferenced.org>
Sat, 23 Mar 2019 03:17:50 +0000
(
03:17
+0000)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index fcdac3a3f249705ba87ca04003d58ac0e35c91f8..26190df2fabac32305e5fba728eadc6e844bbf66 100644
(file)
--- a/
lib/pleroma/activity.ex
+++ b/
lib/pleroma/activity.ex
@@
-83,7
+83,7
@@
defmodule Pleroma.Activity do
from(
activity in Activity,
where: fragment("(?)->>'id' = ?", activity.data, ^to_string(ap_id)),
-
inner
_join: o in Object,
+
left
_join: o in Object,
on:
fragment(
"(?->>'id') = COALESCE((? -> 'object'::text) ->> 'id'::text)",