fix #r-18 tag so it only appears when shared

This commit is contained in:
r888888888
2014-02-24 18:02:48 -08:00
parent 19dc3537c4
commit c51c76adf3
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
var addthis_config = {"data_track_addressbar": false};
var addthis_share = {
"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 type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f8dbf8a41066ac7"></script>

View File

@@ -121,7 +121,7 @@
<meta name="post-is-flagged" content="<%= @post.is_flagged? %>">
<meta name="config-large-width" content="<%= Danbooru.config.large_image_width %>">
<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:image" content="<%= @post.preview_file_url %>">