diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2019-10-04 06:47:36 +0200 |
---|---|---|
committer | Ariadne Conill <ariadne@dereferenced.org> | 2019-10-04 22:27:07 +0000 |
commit | dbd78de1765ba4a53cdd2d12d8617c137ea46ed9 (patch) | |
tree | ecb1479ae32dc69dc519aca009af2ea181e63b7a /test | |
parent | 43be47c16136363506fda9e013df5ea19a5cb0e5 (diff) | |
download | pleroma-dbd78de1765ba4a53cdd2d12d8617c137ea46ed9.tar.gz |
notification_view.ex: Make sure `account` isn’t empty
Related: https://git.pleroma.social/pleroma/pleroma/issues/1203
Diffstat (limited to 'test')
-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 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 |