diff --git a/app/views/domain/posts/show.html.erb b/app/views/domain/posts/show.html.erb index a9969abd..26cbac15 100644 --- a/app/views/domain/posts/show.html.erb +++ b/app/views/domain/posts/show.html.erb @@ -11,6 +11,37 @@ } <% end %> + <% if log_entry && is_renderable_image_type?(log_entry.content_type) && (log_entry.status_code == 200) && (blob_entry = log_entry.response) %> + <% path = blob_url( + HexUtil.bin2hex(blob_entry.sha256), + format: extension_for_content_type(blob_entry.content_type), + thumb: "content-container", + ) + %> + + + + + + + + <% end %> + <% + description = [] + description << "posted #{@post.posted_at.strftime("%B %d, %Y")}" if @post.respond_to?(:posted_at) && @post.posted_at.present? + description << "by #{@post.primary_creator_for_view&.name || "Unknown"}" + description << "@ #{domain_name_for_model(@post)}" + %> + "> + + + <% + site_name = "#{domain_name_for_model(@post)} via ReFurrer" + %> + + + + <% end %>