From a23c02d0cb96411ddfd6ca273a10708cf8430b4a Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 10 Oct 2022 06:27:59 -0500 Subject: [PATCH] posts: include id attribute in API. --- 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 4e49dfbed..5b947d33f 100644 --- a/app/policies/post_policy.rb +++ b/app/policies/post_policy.rb @@ -91,7 +91,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] if !visible? + attributes -= [:md5] if !visible? attributes end