diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-07-22 17:42:15 +0200 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-07-22 17:42:15 +0200 |
| commit | 72ca58c540ee03de50631ea08a419f2589a0fe8e (patch) | |
| tree | f3202dbb9cdfa2b9399d5584c03ba0dd2ff917cd /test/web/ostatus | |
| parent | a027b0027cc06609b112d4341348734c1378d6f2 (diff) | |
| download | pleroma-72ca58c540ee03de50631ea08a419f2589a0fe8e.tar.gz pleroma-72ca58c540ee03de50631ea08a419f2589a0fe8e.zip | |
Save follower count and note count in user.
Diffstat (limited to 'test/web/ostatus')
| -rw-r--r-- | test/web/ostatus/ostatus_test.exs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs index 34bfaa005..959b744af 100644 --- a/test/web/ostatus/ostatus_test.exs +++ b/test/web/ostatus/ostatus_test.exs @@ -15,6 +15,8 @@ defmodule Pleroma.Web.OStatusTest do incoming = File.read!("test/fixtures/incoming_note_activity.xml") {:ok, [activity]} = OStatus.handle_incoming(incoming) + user = User.get_by_ap_id(activity.data["actor"]) + assert user.info["note_count"] == 1 assert activity.data["type"] == "Create" assert activity.data["object"]["type"] == "Note" assert activity.data["object"]["id"] == "tag:gs.example.org:4040,2017-04-23:noticeId=29:objectType=note" |
