Skip to content

A platform for community discussion. Free, open, simple.

DEV: Reserve notification type and push icon for the resenha plugin (#42585)

Rafael dos Santos Silva2e09cf5af8cd
diff --git a/app/assets/images/push-notifications/resenha_invitation.png b/app/assets/images/push-notifications/resenha_invitation.png
new file mode 100644
index 00000000000..a40d64fc3e0
Binary files /dev/null and b/app/assets/images/push-notifications/resenha_invitation.png differ
diff --git a/app/models/notification.rb b/app/models/notification.rb
index aaca1834a30..e9784b2e3ab 100644
--- a/app/models/notification.rb
+++ b/app/models/notification.rb
@@ -175,6 +175,7 @@ class Notification < ActiveRecord::Base
following_created_topic: 801, # Used by https://github.com/discourse/discourse-follow
following_replied: 802, # Used by https://github.com/discourse/discourse-follow
circles_activity: 900, # Used by https://github.com/discourse/discourse-circles
+ resenha_invitation: 1000, # Used by https://github.com/discourse/resenha
)
end
diff --git a/spec/requests/api/schemas/json/site_response.json b/spec/requests/api/schemas/json/site_response.json
index cc1599b818f..4ff7270f585 100644
--- a/spec/requests/api/schemas/json/site_response.json
+++ b/spec/requests/api/schemas/json/site_response.json
@@ -154,6 +154,9 @@
},
"suggested_edit_accepted": {
"type": "integer"
+ },
+ "resenha_invitation": {
+ "type": "integer"
}
},
"required": [