REFACTOR: Remove `Discourse.SiteSettings` from post model

REFACTOR: Remove Discourse.SiteSettings from post model

diff --git a/app/assets/javascripts/discourse/app/models/post.js b/app/assets/javascripts/discourse/app/models/post.js
index f181eae..6c211a8 100644
--- a/app/assets/javascripts/discourse/app/models/post.js
+++ b/app/assets/javascripts/discourse/app/models/post.js
@@ -40,9 +40,7 @@ const Post = RestModel.extend({
 
   @discourseComputed("name", "username")
   showName(name, username) {
-    return (
-      name && name !== username && Discourse.SiteSettings.display_name_on_posts
-    );
+    return name && name !== username && this.siteSettings.display_name_on_posts;
   },
 
   @discourseComputed("firstPost", "deleted_by", "topic.deleted_by")
@@ -190,10 +188,7 @@ const Post = RestModel.extend({
     this.set("oldCooked", this.cooked);
 
     // Moderators can delete posts. Users can only trigger a deleted at message, unless delete_removed_posts_after is 0.
-    if (
-      deletedBy.staff ||
-      Discourse.SiteSettings.delete_removed_posts_after === 0
-    ) {
+    if (deletedBy.staff || this.siteSettings.delete_removed_posts_after === 0) {
       this.setProperties({
         deleted_at: new Date(),
         deleted_by: deletedBy,
@@ -207,7 +202,7 @@ const Post = RestModel.extend({
           : "post.deleted_by_author";
       promise = cookAsync(
         I18n.t(key, {
-          count: Discourse.SiteSettings.delete_removed_posts_after
+          count: this.siteSettings.delete_removed_posts_after
         })
       ).then(cooked => {
         this.setProperties({

GitHub sha: f6c40075

This commit appears in #10280 which was merged by eviltrout.