projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Object Fetcher: set cache after reinjecting
[akkoma]
/
lib
/
pleroma
/
user.ex
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 617f160e0e547159237ff64bdb84e59368c64add..f0912fb100bfd7ee24d797deafbb6342842fb75a 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-718,7
+718,7
@@
defmodule Pleroma.User do
set: [
info:
fragment(
set: [
info:
fragment(
- "jsonb_set(?, '{note_count}', ((?->>'note_count')::int + 1)::varchar::jsonb, true)",
+ "
safe_
jsonb_set(?, '{note_count}', ((?->>'note_count')::int + 1)::varchar::jsonb, true)",
u.info,
u.info
)
u.info,
u.info
)
@@
-739,7
+739,7
@@
defmodule Pleroma.User do
set: [
info:
fragment(
set: [
info:
fragment(
- "jsonb_set(?, '{note_count}', (greatest(0, (?->>'note_count')::int - 1))::varchar::jsonb, true)",
+ "
safe_
jsonb_set(?, '{note_count}', (greatest(0, (?->>'note_count')::int - 1))::varchar::jsonb, true)",
u.info,
u.info
)
u.info,
u.info
)
@@
-812,7
+812,7
@@
defmodule Pleroma.User do
set: [
info:
fragment(
set: [
info:
fragment(
- "jsonb_set(?, '{follower_count}', ?::varchar::jsonb, true)",
+ "
safe_
jsonb_set(?, '{follower_count}', ?::varchar::jsonb, true)",
u.info,
s.count
)
u.info,
s.count
)