diff options
author | lain <lain@soykaf.club> | 2020-09-16 12:22:48 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-09-16 12:22:48 +0000 |
commit | 6b088ed76a7c4b895c4bff4113e291bd53209273 (patch) | |
tree | 9d7f7737f6cff97984ee0cc83930843bac02d655 /test/web/mastodon_api/controllers/account_controller_test.exs | |
parent | cfad4f46b2d53f67722f7b8046b673d60a9cefcd (diff) | |
parent | 599f8bb152ca0669d17baa5f313f00f0791209b6 (diff) | |
download | pleroma-6b088ed76a7c4b895c4bff4113e291bd53209273.tar.gz pleroma-6b088ed76a7c4b895c4bff4113e291bd53209273.zip |
Merge branch 'issue/2089' into 'develop'
[#2089] fix notifications
See merge request pleroma/pleroma!3000
Diffstat (limited to 'test/web/mastodon_api/controllers/account_controller_test.exs')
-rw-r--r-- | test/web/mastodon_api/controllers/account_controller_test.exs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/web/mastodon_api/controllers/account_controller_test.exs b/test/web/mastodon_api/controllers/account_controller_test.exs index 17a1e7d66..f7f1369e4 100644 --- a/test/web/mastodon_api/controllers/account_controller_test.exs +++ b/test/web/mastodon_api/controllers/account_controller_test.exs @@ -1442,7 +1442,10 @@ defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do describe "verify_credentials" do test "verify_credentials" do %{user: user, conn: conn} = oauth_access(["read:accounts"]) - [notification | _] = insert_list(7, :notification, user: user) + + [notification | _] = + insert_list(7, :notification, user: user, activity: insert(:note_activity)) + Pleroma.Notification.set_read_up_to(user, notification.id) conn = get(conn, "/api/v1/accounts/verify_credentials") |