diff options
| author | lain <lain@soykaf.club> | 2019-10-05 15:10:57 +0200 |
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-10-05 15:10:57 +0200 |
| commit | 1ed8fbc4d96c1d44ab968d6aa1b0069c55e44626 (patch) | |
| tree | b86cb69103fba795ee7dc0f8b3753fb322f79032 /test/web/mastodon_api/views | |
| parent | d9aaea44ff02d6a07d3be0f0675830eb51ac85ef (diff) | |
| parent | e51c20f28a91028b06a5783601e4ce09536bba5b (diff) | |
| download | pleroma-1ed8fbc4d96c1d44ab968d6aa1b0069c55e44626.tar.gz pleroma-1ed8fbc4d96c1d44ab968d6aa1b0069c55e44626.zip | |
Merge remote-tracking branch 'origin/develop' into reactions
Diffstat (limited to 'test/web/mastodon_api/views')
| -rw-r--r-- | test/web/mastodon_api/views/account_view_test.exs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/web/mastodon_api/views/account_view_test.exs b/test/web/mastodon_api/views/account_view_test.exs index b7a4938a6..62b2ab7e3 100644 --- a/test/web/mastodon_api/views/account_view_test.exs +++ b/test/web/mastodon_api/views/account_view_test.exs @@ -418,27 +418,6 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do following_count: 1 } = AccountView.render("show.json", %{user: user, for: user}) end - - test "shows unread_conversation_count only to the account owner" do - user = insert(:user) - other_user = insert(:user) - - {:ok, _activity} = - CommonAPI.post(user, %{ - "status" => "Hey @#{other_user.nickname}.", - "visibility" => "direct" - }) - - user = User.get_cached_by_ap_id(user.ap_id) - - assert AccountView.render("show.json", %{user: user, for: other_user})[:pleroma][ - :unread_conversation_count - ] == nil - - assert AccountView.render("show.json", %{user: user, for: user})[:pleroma][ - :unread_conversation_count - ] == 1 - end end describe "follow requests counter" do |
