projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9972678
)
Correct syntax with mix format
author
Dashie
<dashie@sigpipe.me>
Tue, 24 Apr 2018 12:12:23 +0000
(14:12 +0200)
committer
Dashie
<dashie@sigpipe.me>
Tue, 24 Apr 2018 12:12:23 +0000
(14:12 +0200)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index 0bc7dcab0aaebed7c9e59a80a76826ffb485552a..e9196ae0391b8b254008d1414b567e2da2265c38 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-323,7
+323,7
@@
defmodule Pleroma.User do
end
def decrease_note_count(%User{} = user) do
- note_count =
(user.info["note_count"] || 0)
+ note_count =
user.info["note_count"] || 0
note_count = if note_count <= 0, do: 0, else: note_count - 1
new_info = Map.put(user.info, "note_count", note_count)