diff --git a/app/models/post.rb b/app/models/post.rb index 22f8156bf..cb14a1792 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1733,7 +1733,6 @@ class Post < ActiveRecord::Base BOOLEAN_ATTRIBUTES = %w( has_embedded_notes - cdn_hosted ) has_bit_flags BOOLEAN_ATTRIBUTES diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index b9e565598..00fa8b540 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -22,6 +22,10 @@ <% end %> <%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %> + + <% if CurrentUser.id == post.uploader_id %> +
If you don't understand why your uploads keep getting deleted, you should ask on the <%= link_to "forum", forum_topic_path(Danbooru.config.upload_feedback_topic) %> for advice.
+ <% end %> <% end %> diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index f11cbcd08..3a1a6faa8 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -35,6 +35,10 @@ module Danbooru User.find_by_name("DanbooruBot") || User.admins.first end + def upload_feedback_topic + ForumTopic.where(title: "Upload Feedback Thread").first + end + def upgrade_account_email contact_email end