diff options
| author | lain <lain@soykaf.club> | 2019-10-04 11:28:20 +0000 | 
|---|---|---|
| committer | lain <lain@soykaf.club> | 2019-10-04 11:28:20 +0000 | 
| commit | 01da6344b96d74bcb3db5cc73007bf32949f91ca (patch) | |
| tree | 835633031326fd54de42dc8aa8fc7535ab9c3edb /test/web/mastodon_api/views | |
| parent | bc095a27f10047e3620d1e665d29aa7b7a91a584 (diff) | |
| parent | 5dc14c89cecc121ffb047c2a7c972af0b0f89ef8 (diff) | |
| download | pleroma-01da6344b96d74bcb3db5cc73007bf32949f91ca.tar.gz pleroma-01da6344b96d74bcb3db5cc73007bf32949f91ca.zip  | |
Merge branch 'bugfix/notification-nil-actor' into 'develop'
notification_view.ex: Make sure `account` isn’t empty
See merge request pleroma/pleroma!1779
Diffstat (limited to 'test/web/mastodon_api/views')
| -rw-r--r-- | test/web/mastodon_api/views/notification_view_test.exs | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/test/web/mastodon_api/views/notification_view_test.exs b/test/web/mastodon_api/views/notification_view_test.exs index 81ab82e2b..c9043a69a 100644 --- a/test/web/mastodon_api/views/notification_view_test.exs +++ b/test/web/mastodon_api/views/notification_view_test.exs @@ -100,5 +100,11 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do        NotificationView.render("index.json", %{notifications: [notification], for: followed})      assert [expected] == result + +    User.perform(:delete, follower) +    notification = Notification |> Repo.one() |> Repo.preload(:activity) + +    assert [] == +             NotificationView.render("index.json", %{notifications: [notification], for: followed})    end  end  | 
