From 161311626648945b365fc255f4f02dc4273339c5 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 3 Dec 2013 13:07:56 -0800 Subject: [PATCH] remove sanitize call from DText.parse, cache post notes, remove prefetch links --- app/logical/d_text.rb | 2 +- app/views/posts/show.html.erb | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index f95d58742..8112fa4a3 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -240,7 +240,7 @@ class DText end end - sanitize(html.join("")).html_safe + html.join("").html_safe end def self.sanitize(text) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index d1702e534..5c7f0b08d 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -73,7 +73,9 @@ <% if CurrentUser.is_member? && Danbooru.config.can_user_see_post?(CurrentUser.user, @post) %> @@ -130,13 +132,6 @@ <% end %> - - <% if @post.presenter.next_post_in_pool %> - - - - - <% end %> <% end %> <%= render "posts/partials/common/secondary_links" %>