Merge pull request #3228 from r888888888/ccs

integrate with ccs
This commit is contained in:
Albert Yi
2017-07-21 18:00:05 -07:00
committed by GitHub
5 changed files with 52 additions and 0 deletions

View File

@@ -141,4 +141,13 @@
Upload - <%= Danbooru.config.app_name %>
<% end %>
<% if CurrentUser.is_moderator? && Danbooru.config.ccs_server.present? && @normalized_url %>
<% content_for(:html_header) do %>
<%= tag("meta", name: "ccs-server", content: Danbooru.config.ccs_server) %>
<%= tag("meta", name: "image-url", content: @normalized_url) %>
<%= tag("meta", name: "image-ref", content: ImageProxy.fake_referer_for(@normalized_url)) %>
<%= tag("meta", name: "image-sig", content: ccs_build_sig(@normalized_url)) %>
<% end %>
<% end %>
<%= render "posts/partials/common/secondary_links" %>