Merge pull request #3703 from r888888888/favorites-meta-privacy

Fix #3633: Remove favorites meta tag
This commit is contained in:
Albert Yi
2018-05-07 17:36:55 -07:00
committed by GitHub
2 changed files with 1 additions and 4 deletions

View File

@@ -8,7 +8,6 @@
}
Danbooru.Favorite.hide_or_show_add_to_favorites_link = function() {
var favorites = Danbooru.meta("favorites");
var current_user_id = Danbooru.meta("current-user-id");
if (current_user_id == "") {
$("#add-to-favorites").hide();
@@ -17,8 +16,7 @@
$("#remove-fav-button").hide();
return;
}
var regexp = new RegExp("\\bfav:" + current_user_id + "\\b");
if ((favorites != undefined) && (favorites.match(regexp))) {
if ($("#image-container").length && $("#image-container").data("is-favorited") == true) {
$("#add-to-favorites").hide();
$("#add-fav-button").hide();
} else {

View File

@@ -155,7 +155,6 @@
<% content_for(:html_header) do %>
<meta name="description" content="<%= @post.presenter.humanized_tag_string %>">
<meta name="tags" content="<%= @post.tag_string %>">
<meta name="favorites" content="<%= @post.fav_string %>">
<meta name="pools" content="<%= @post.pool_string %>">
<meta name="post-id" content="<%= @post.id %>">
<% if CurrentUser.can_approve_posts? %>