Fix bugs when anonymous uses member-only shortcuts

This commit is contained in:
Toks
2016-01-13 11:48:25 -05:00
parent e9d79b7ae0
commit af2167ea32
5 changed files with 22 additions and 2 deletions

View File

@@ -189,7 +189,11 @@
if ($("#add-to-favorites").is(":visible")) {
$("#add-to-favorites").click();
} else {
Danbooru.notice("You have already favorited this post")
if (Danbooru.meta("current-user-id") == "") {
Danbooru.notice("You must be logged in to favorite posts");
} else {
Danbooru.notice("You have already favorited this post");
}
}
e.preventDefault();
});