A platform for community discussion. Free, open, simple.
FIX: discourse-follow notification types (#19513)
Krzysztof Kotlareka6edd6ea61ee
diff --git a/app/models/notification.rb b/app/models/notification.rbindex 7da9513a99d..c4843a70e6f 100644--- a/app/models/notification.rb+++ b/app/models/notification.rb@@ -140,6 +140,9 @@ class Notification < ActiveRecord::Basequestion_answer_user_commented: 35, # Used by https://github.com/discourse/discourse-question-answerwatching_category_or_tag: 36,new_features: 37,+ following: 800, # Used by https://github.com/discourse/discourse-follow+ following_created_topic: 801, # Used by https://github.com/discourse/discourse-follow+ following_replied: 802, # Used by https://github.com/discourse/discourse-follow)enddiff --git a/spec/requests/api/schemas/json/site_response.json b/spec/requests/api/schemas/json/site_response.jsonindex 635000d874d..4ec85e646fa 100644--- a/spec/requests/api/schemas/json/site_response.json+++ b/spec/requests/api/schemas/json/site_response.json@@ -118,6 +118,15 @@},"question_answer_user_commented": {"type": "integer"+ },+ "following": {+ "type": "integer"+ },+ "following_created_topic": {+ "type": "integer"+ },+ "following_replied": {+ "type": "integer"}},"required": [