X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fuser.ex;h=e9196ae0391b8b254008d1414b567e2da2265c38;hb=3f9385096e7ce2094e35018d648123b1c86c7df9;hp=0bc7dcab0aaebed7c9e59a80a76826ffb485552a;hpb=9972678a68605d24373f785f783d0fe60f77afdc;p=akkoma diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 0bc7dcab0..e9196ae03 100644 --- 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)