From 1d9061c5babcf5bc7c4a318c4b4f72438da17566 Mon Sep 17 00:00:00 2001 From: pichalite Date: Sat, 20 Feb 2016 07:02:05 +0000 Subject: [PATCH] don't show user card for guest --- lib/persona.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/persona.js b/lib/persona.js index 75e19ed..db48e40 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -198,6 +198,10 @@ $(document).ready(function() { $('.persona-usercard').remove(); + if (parseInt(data.uid, 10) === 0) { + return false; + } + socket.emit('user.isFollowing', {uid: data.uid}, function(err, isFollowing) { app.parseAndTranslate('modules/usercard', data, function(html) { var card = $(html);