added ai detection question to invite request form

This commit is contained in:
agnesthealien 2026-03-30 18:42:14 -04:00
parent 1e3ee73118
commit 17af596c34
7 changed files with 12 additions and 12 deletions

View file

@ -97,7 +97,7 @@ class TagsController < ApplicationController
end end
@tag = @tag.merger if !@tag.canonical? && @tag.merger @tag = @tag.merger if !@tag.canonical? && @tag.merger
# Temp for testing # Temp for testing
if %w(Fandom Character Relationship).include?(@tag.type.to_s) || @tag.name == 'F/F' if %w(Category Fandom Character Relationship).include?(@tag.type.to_s) || @tag.name == 'NB/F'
if @tag.canonical? if @tag.canonical?
@works = @tag.filtered_works.visible_to_all.order('created_at DESC').limit(25) @works = @tag.filtered_works.visible_to_all.order('created_at DESC').limit(25)
else else

View file

@ -82,12 +82,12 @@ module WorksHelper
reading && reading.toread? reading && reading.toread?
end end
def mark_as_read_button(work) def mark_as_read_link(work)
button_to t("works_helper.mark_as_read_button"), mark_as_read_work_path(work), method: :patch link_to ts("Mark as Read"), mark_as_read_work_path(work)
end end
def mark_for_later_button(work) def mark_for_later_link(work)
button_to t("works_helper.mark_for_later_button"), mark_for_later_work_path(work), method: :patch link_to ts("Mark for Later"), mark_for_later_work_path(work)
end end
def get_endnotes_link(work) def get_endnotes_link(work)

View file

@ -57,7 +57,7 @@
<% if logged_in? && @work && marked_for_later?(@work) %> <% if logged_in? && @work && marked_for_later?(@work) %>
<li> <li>
<%= mark_as_read_button(@work) %> <%= mark_as_read_link(@work) %>
</li> </li>
<% end %> <% end %>

View file

@ -19,7 +19,7 @@ The invite queue may close sometimes.
<p> <p>
<%= f.label :email %> <%= f.label :email %>
<%= f.text_field :email %> <%= f.text_field :email %>
<br><br> <p>Please put a little bit about you and a statement affirming you agree with anti harassment & anti-censorship ideals in the field below. Requests without at least something in this field will be deleted without warning.<br><br> <br><br> <p>Please put a little bit about you and a statement affirming you agree with anti harassment & anti-censorship ideals in the field below. <strong> NEW AS OF MARCH 30 2026: </strong> We have been getting a lot of AI invite requests. To make AI detection easier, you <strong>must</strong> include your favorite F/F, F/NB, or NB/NB ship or something along the lines of that in the request field below. Requests without at least something related to that in the field below will be deleted without warning. Sorry, blame whoever coded these bots.<br><br>
</p> <%= f.label :note %> </p> <%= f.label :note %>
<%= f.text_area :note, size: "60x10" %> <%= f.text_area :note, size: "60x10" %>
<%= f.submit t(".add_to_list") %> <%= f.submit t(".add_to_list") %>

View file

@ -1,5 +1,5 @@
atom_feed do |feed| atom_feed do |feed|
feed.title "AO3 works tagged '#{@tag.name}'" feed.title "Sunset works tagged '#{@tag.name}'"
feed.updated @works.first.created_at if @works.respond_to?(:first) && @works.first.present? feed.updated @works.first.created_at if @works.respond_to?(:first) && @works.first.present?
@works.each do |work| @works.each do |work|

4
app/views/works/_work_header_navigation.html.erb Executable file → Normal file
View file

@ -58,9 +58,9 @@
<% unless current_user.is_author_of?(@work) || current_user.try(:preference).try(:history_enabled) == false %> <% unless current_user.is_author_of?(@work) || current_user.try(:preference).try(:history_enabled) == false %>
<li class="mark"> <li class="mark">
<% if marked_for_later?(@work) %> <% if marked_for_later?(@work) %>
<%= mark_as_read_button(@work) %> <%= mark_as_read_link(@work) %>
<% else %> <% else %>
<%= mark_for_later_button(@work) %> <%= mark_for_later_link(@work) %>
<% end %> <% end %>
</li> </li>
<% end %> <% end %>

View file

@ -34,7 +34,7 @@
<% if @tag && logged_in? && !@collection %> <% if @tag && logged_in? && !@collection %>
<li><%= render "favorite_tags/form", current_user: @current_user, favorite_tag: @favorite_tag %></li> <li><%= render "favorite_tags/form", current_user: @current_user, favorite_tag: @favorite_tag %></li>
<% end %> <% end %>
<% if @tag && !@collection && (%w(Fandom Character Relationship).include?(@tag.type.to_s) || @tag.name == "F/F") %> <% if @tag && !@collection && (%w(Fandom Category Character Relationship).include?(@tag.type.to_s) || @tag.name == "F/F") %>
<li><%= link_to_rss feed_tag_path({ id: @tag.id, format: :atom }) %></li> <li><%= link_to_rss feed_tag_path({ id: @tag.id, format: :atom }) %></li>
<% end %> <% end %>
</ul> </ul>