fix #r-18 tag so it only appears when shared
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
var addthis_config = {"data_track_addressbar": false};
|
var addthis_config = {"data_track_addressbar": false};
|
||||||
var addthis_share = {
|
var addthis_share = {
|
||||||
"url":"<%= j post_path(post, :only_path => false, :host => Danbooru.config.hostname) %>",
|
"url":"<%= j post_path(post, :only_path => false, :host => Danbooru.config.hostname) %>",
|
||||||
"title": "<%= j post.presenter.humanized_essential_tag_string %>"
|
"title": "<%= '#r-18 ' unless post.rating == 's' %><%= j post.presenter.humanized_essential_tag_string %>"
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f8dbf8a41066ac7"></script>
|
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f8dbf8a41066ac7"></script>
|
||||||
|
|||||||
@@ -121,7 +121,7 @@
|
|||||||
<meta name="post-is-flagged" content="<%= @post.is_flagged? %>">
|
<meta name="post-is-flagged" content="<%= @post.is_flagged? %>">
|
||||||
<meta name="config-large-width" content="<%= Danbooru.config.large_image_width %>">
|
<meta name="config-large-width" content="<%= Danbooru.config.large_image_width %>">
|
||||||
<meta name="always-resize-images" content="<%= CurrentUser.user.always_resize_images? %>">
|
<meta name="always-resize-images" content="<%= CurrentUser.user.always_resize_images? %>">
|
||||||
<meta property="og:title" content="<%= '#r-18 ' unless @post.rating == 's' %><%= @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %>">
|
<meta property="og:title" content="<%= @post.presenter.humanized_essential_tag_string %> - <%= Danbooru.config.app_name %>">
|
||||||
<meta property="og:description" content="<%= @post.presenter.humanized_tag_string %>">
|
<meta property="og:description" content="<%= @post.presenter.humanized_tag_string %>">
|
||||||
<meta property="og:image" content="<%= @post.preview_file_url %>">
|
<meta property="og:image" content="<%= @post.preview_file_url %>">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user