projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'cycles-frontend-static' into 'develop'
[akkoma]
/
lib
/
mix
/
tasks
/
pleroma
/
refresh_counter_cache.ex
diff --git
a/lib/mix/tasks/pleroma/refresh_counter_cache.ex
b/lib/mix/tasks/pleroma/refresh_counter_cache.ex
index b44e2545d08b6fc4f7b799eed585e0e31ac2dd4f..66eed86570d7e0a0ea1f6c38a8d1fbf34710934d 100644
(file)
--- a/
lib/mix/tasks/pleroma/refresh_counter_cache.ex
+++ b/
lib/mix/tasks/pleroma/refresh_counter_cache.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.RefreshCounterCache do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.RefreshCounterCache do
@@
-42,7
+42,7
@@
defmodule Mix.Tasks.Pleroma.RefreshCounterCache do
Activity
|> where([a], fragment("(? ->> 'type'::text) = 'Create'", a.data))
Activity
|> where([a], fragment("(? ->> 'type'::text) = 'Create'", a.data))
- |> where([a],
like(a.actor, ^"%#{instance}%"
))
+ |> where([a],
fragment("split_part(?, '/', 3) = ?", a.actor, ^instance
))
|> select(
[a],
{fragment(
|> select(
[a],
{fragment(