From a6edd6ea61ee6e2165588e2f6f3afcc34e5f3182 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Mon, 19 Dec 2022 15:57:35 +1100 Subject: [PATCH] FIX: discourse-follow notification types (#19513) Bring information about discourse-follow notification types to Core https://github.com/discourse/discourse-follow/blob/main/plugin.rb#L32 --- app/models/notification.rb | 3 +++ spec/requests/api/schemas/json/site_response.json | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/app/models/notification.rb b/app/models/notification.rb index 7da9513a99..c4843a70e6 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -140,6 +140,9 @@ class Notification < ActiveRecord::Base question_answer_user_commented: 35, # Used by https://github.com/discourse/discourse-question-answer watching_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 ) end diff --git a/spec/requests/api/schemas/json/site_response.json b/spec/requests/api/schemas/json/site_response.json index 635000d874..4ec85e646f 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": [