Delete report notifs when demoting from superuser
authorIlja <ilja@ilja.space>
Sun, 6 Mar 2022 16:36:30 +0000 (17:36 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 29 Jun 2022 19:43:41 +0000 (20:43 +0100)
commit1048bc1bb9ec11766cff3ab3d75219f55b84f980
tree3c3d342e8f968a3c0c9f0b2b34c6322e6ed24453
parent91d71500319255b0de5b18e8977d5e17fb1dda61
Delete report notifs when demoting from superuser

When someone isn't a superuser any more, they shouldn't see the reporsts any more either.
Here we delete the report notifications from a user when that user gets updated from being a superuser to a non-superuser.
lib/pleroma/notification.ex
lib/pleroma/user.ex
test/pleroma/notification_test.exs
test/pleroma/user_test.exs