aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-10-04 11:28:20 +0000
committerlain <lain@soykaf.club>2019-10-04 11:28:20 +0000
commit01da6344b96d74bcb3db5cc73007bf32949f91ca (patch)
tree835633031326fd54de42dc8aa8fc7535ab9c3edb /test
parentbc095a27f10047e3620d1e665d29aa7b7a91a584 (diff)
parent5dc14c89cecc121ffb047c2a7c972af0b0f89ef8 (diff)
downloadpleroma-01da6344b96d74bcb3db5cc73007bf32949f91ca.tar.gz
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')
-rw-r--r--test/web/mastodon_api/views/notification_view_test.exs6
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