From d4c02d738bf4c53b19cc68b4a312c081814323e7 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Tue, 5 Dec 2023 12:08:29 -0600 Subject: [PATCH] DEV: Add topicNotificationLevel fn to post model (#24723) --- app/assets/javascripts/discourse/app/models/post.js | 4 ++++ 1 file changed, 4 insertions(+) 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({