Make notifs view work for reports
authorIlja <pleroma@spectraltheorem.be>
Fri, 13 Nov 2020 13:35:46 +0000 (13:35 +0000)
committerlain <lain@soykaf.club>
Fri, 13 Nov 2020 13:35:46 +0000 (13:35 +0000)
commit70e4b86250da9ef97a836f497510c36bf22fa905
tree5baa3c2b25645f3ad2bfbf004eefa6de69bd4907
parent294628d9815d6e7390427c08ff0f8f5b073dc10f
Make notifs view work for reports

* These are the first small steps for issue 2034 "Reports should send a notification to admins".
* I added a new type of notification "pleroma:report" to the the database manually (a migration will need to be written later)
* I added the new type to the notification_controller
* I made the view return the notification. It doesn't include the report itself (yet)
CHANGELOG.md
docs/API/differences_in_mastoapi_responses.md
lib/pleroma/notification.ex
lib/pleroma/web/api_spec/operations/notification_operation.ex
lib/pleroma/web/mastodon_api/views/notification_view.ex
priv/repo/migrations/20200831152600_add_pleroma_report_to_enum_for_notifications.exs [new file with mode: 0644]
test/pleroma/notification_test.exs
test/pleroma/web/mastodon_api/controllers/notification_controller_test.exs
test/pleroma/web/mastodon_api/views/notification_view_test.exs