aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkaniini <ariadne@dereferenced.org>2019-10-04 22:37:45 +0000
committerkaniini <ariadne@dereferenced.org>2019-10-04 22:37:45 +0000
commit4168ead67290fce809c8c7bf671fd9de07079da6 (patch)
tree1af830857b44e852359bdc53c876cadf2e346317 /test
parent43be47c16136363506fda9e013df5ea19a5cb0e5 (diff)
parent2714caac8b275bf2e75285e358ccb3818133854a (diff)
downloadpleroma-4168ead67290fce809c8c7bf671fd9de07079da6.tar.gz
Merge branch 'backport/bugfix-notification-nil-actor' into 'maint/1.1'
backport MR 1779 to maint/1.1 See merge request pleroma/pleroma!1791
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 977ea1e87..8aed145d7 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