Fix #4993: IQDB broken on upload page.

This commit is contained in:
evazion
2022-02-04 11:12:16 -06:00
parent 7c63ac8dbd
commit fd25cd6868
2 changed files with 2 additions and 1 deletions

View File

@@ -48,6 +48,7 @@
<% end %>
<%= edit_form_for(@post, html: { id: "form" }) do |f| %>
<%= hidden_field_tag :media_asset_id, @media_asset.id %> <%# used by iqdb javascript %>
<%= hidden_field_tag :upload_media_asset_id, @upload_media_asset.id %>
<%= f.input :source, as: :string, input_html: { value: @upload.source_strategy&.canonical_url } %>