Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add topicNotificationLevel fn to post model (#24723)

Mark VanLandinghamd4c02d738bf4
diff --git a/app/assets/javascripts/discourse/app/models/post.js b/app/assets/javascripts/discourse/app/models/post.js
index b69a5674550..aa9ce098b2b 100644
--- a/app/assets/javascripts/discourse/app/models/post.js
+++ b/app/assets/javascripts/discourse/app/models/post.js
@@ -392,6 +392,10 @@ const Post = RestModel.extend({
type: "PUT",
});
},
+
+ get topicNotificationLevel() {
+ return this.topic.details.notification_level;
+ },
});
Post.reopenClass({