posts: remove rating, note, and status locks.
Remove the ability for users to lock ratings, note, and post statuses. Historically the majority of locked posts were from 10+ years ago when certain users habitually locked ratings and notes on every post they touched for no reason. Nowadays most posts have been unlocked. Only a handful of locked posts are left, none of which deserve to be locked. The is_rating_locked, is_note_locked, and is_status_locked columns still exist in the database, but aren't used.
This commit is contained in:
@@ -15,33 +15,13 @@
|
||||
<%= f.input :old_source, as: :hidden, input_html: { value: post.source } %>
|
||||
<%= f.input :old_rating, as: :hidden, input_html: { value: post.rating } %>
|
||||
|
||||
<% if post.is_rating_locked? %>
|
||||
This post is rating locked.
|
||||
<% else %>
|
||||
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, boolean_style: :inline %>
|
||||
<% end %>
|
||||
<%= f.input :rating, collection: [["Explicit", "e"], ["Questionable", "q"], ["Safe", "s"]], as: :radio_buttons, boolean_style: :inline %>
|
||||
|
||||
<fieldset class="inline-fieldset post_has_embedded_notes_fieldset">
|
||||
<label>Notes</label>
|
||||
<%= f.input :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline, disabled: post.is_note_locked? %>
|
||||
<%= f.input :has_embedded_notes, label: "Embed notes", as: :boolean, boolean_style: :inline %>
|
||||
</fieldset>
|
||||
|
||||
<% if policy(post).can_lock_rating? || policy(post).can_lock_notes? || policy(post).can_lock_status? %>
|
||||
<fieldset class="inline-fieldset post_lock_fieldset">
|
||||
<label>Lock</label>
|
||||
|
||||
<% if policy(post).can_lock_rating? %>
|
||||
<%= f.input :is_rating_locked, label: "Rating", as: :boolean, boolean_style: :inline %>
|
||||
<% end %>
|
||||
<% if policy(post).can_lock_notes? %>
|
||||
<%= f.input :is_note_locked, label: "Notes", as: :boolean, boolean_style: :inline %>
|
||||
<% end %>
|
||||
<% if policy(post).can_lock_status? %>
|
||||
<%= f.input :is_status_locked, label: "Status", as: :boolean, boolean_style: :inline %>
|
||||
<% end %>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<%= f.input :parent_id, label: "Parent", as: :string %>
|
||||
<%= f.input :source %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user