From 1bb7c50858e1a89fc402701f81ff375eb436e8a8 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 12 Sep 2021 04:27:49 -0500 Subject: [PATCH] posts: unredact file_ext field on hidden posts. --- app/policies/post_policy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/policies/post_policy.rb b/app/policies/post_policy.rb index d23e268e1..ff971606e 100644 --- a/app/policies/post_policy.rb +++ b/app/policies/post_policy.rb @@ -95,7 +95,7 @@ class PostPolicy < ApplicationPolicy attributes += [:has_large, :has_visible_children] attributes += TagCategory.categories.map {|x| "tag_string_#{x}".to_sym} attributes += [:file_url, :large_file_url, :preview_file_url] if visible? - attributes -= [:id, :md5, :file_ext] if !visible? + attributes -= [:id, :md5] if !visible? attributes -= [:fav_string] attributes end