DEV: Register question_answer_user_commented notification type. (#16297)

The notification type is used by https://github.com/discourse/discourse-question-answer
This commit is contained in:
Alan Guo Xiang Tan 2022-03-28 16:03:19 +08:00 committed by GitHub
parent 94207e27d1
commit fc40a572bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -37,4 +37,5 @@ export const NOTIFICATION_TYPES = {
chat_group_mention: 32,
chat_quoted: 33,
assigned: 34,
question_answer_user_commented: 35,
};

View File

@ -111,7 +111,8 @@ class Notification < ActiveRecord::Base
chat_invitation: 31,
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
chat_quoted: 33,
assigned: 34
assigned: 34,
question_answer_user_commented: 35, # Used by https://github.com/discourse/discourse-question-answer
)
end

View File

@ -109,6 +109,9 @@
},
"assigned": {
"type": "integer"
},
"question_answer_user_commented": {
"type": "integer"
}
},
"required": [