mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Add topicNotificationLevel fn to post model (#24723)
This commit is contained in:

committed by
GitHub

parent
a5fc8f3253
commit
d4c02d738b
@ -392,6 +392,10 @@ const Post = RestModel.extend({
|
|||||||
type: "PUT",
|
type: "PUT",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get topicNotificationLevel() {
|
||||||
|
return this.topic.details.notification_level;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
Post.reopenClass({
|
Post.reopenClass({
|
||||||
|
Reference in New Issue
Block a user