diff --git a/app/models/post_flag.rb b/app/models/post_flag.rb index 4ef091839..08aaa7d94 100644 --- a/app/models/post_flag.rb +++ b/app/models/post_flag.rb @@ -102,7 +102,7 @@ class PostFlag < ApplicationRecord flag = post.flags.in_cooldown.last if !is_deletion && flag.present? - errors.add(:post, "cannot be flagged more than once every #{Danbooru.config.moderation_period.inspect} (last flagged: #{flag.created_at.to_s(:long)})") + errors.add(:post, "cannot be flagged more than once every #{Danbooru.config.moderation_period.inspect} (last flagged: #{flag.created_at.to_formatted_s(:long)})") end end diff --git a/app/views/uploads/index.html.erb b/app/views/uploads/index.html.erb index 7effc3ccb..449b3a1f7 100644 --- a/app/views/uploads/index.html.erb +++ b/app/views/uploads/index.html.erb @@ -21,7 +21,7 @@ <% if upload.post.present? %> Size - <%= link_to "#{upload.post.file_size.to_s(:human_size, precision: 4)} #{upload.post.file_ext}", upload.post.file_url %> + <%= link_to "#{upload.post.file_size.to_formatted_s(:human_size, precision: 4)} #{upload.post.file_ext}", upload.post.file_url %> (<%= upload.post.image_width %>x<%= upload.post.image_height %>) <% end %>