mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
anons cant follow, hide follow button if not logged in
This commit is contained in:
@@ -13,8 +13,11 @@
|
||||
|
||||
var editLink = $('#editLink');
|
||||
var followBtn = $('#follow-btn');
|
||||
|
||||
if( yourid !== theirid) {
|
||||
if(yourid === "0") {
|
||||
editLink.hide();
|
||||
followBtn.hide();
|
||||
}
|
||||
else if(yourid !== theirid) {
|
||||
editLink.hide();
|
||||
if(isFollowing)
|
||||
followBtn.hide();
|
||||
|
||||
Reference in New Issue
Block a user