Fix note count update.
This commit is contained in:
parent
6f90ceb2ed
commit
d5af41b577
3 changed files with 11 additions and 5 deletions
|
|
@ -311,11 +311,11 @@ defmodule Pleroma.UserTest do
|
|||
|
||||
user = User.get_by_ap_id(note.data["actor"])
|
||||
|
||||
assert user.info["note_count"] == nil
|
||||
assert user.info.note_count == 0
|
||||
|
||||
{:ok, user} = User.update_note_count(user)
|
||||
|
||||
assert user.info["note_count"] == 1
|
||||
assert user.info.note_count == 1
|
||||
end
|
||||
|
||||
test "it increases the info->note_count property" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue