mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 19:29:51 +00:00
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:
parent
94207e27d1
commit
fc40a572bb
@ -37,4 +37,5 @@ export const NOTIFICATION_TYPES = {
|
|||||||
chat_group_mention: 32,
|
chat_group_mention: 32,
|
||||||
chat_quoted: 33,
|
chat_quoted: 33,
|
||||||
assigned: 34,
|
assigned: 34,
|
||||||
|
question_answer_user_commented: 35,
|
||||||
};
|
};
|
||||||
|
@ -111,7 +111,8 @@ class Notification < ActiveRecord::Base
|
|||||||
chat_invitation: 31,
|
chat_invitation: 31,
|
||||||
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
|
chat_group_mention: 32, # March 2022 - This is obsolete, as all chat_mentions use `chat_mention` type
|
||||||
chat_quoted: 33,
|
chat_quoted: 33,
|
||||||
assigned: 34
|
assigned: 34,
|
||||||
|
question_answer_user_commented: 35, # Used by https://github.com/discourse/discourse-question-answer
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -109,6 +109,9 @@
|
|||||||
},
|
},
|
||||||
"assigned": {
|
"assigned": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"question_answer_user_commented": {
|
||||||
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user