From 4fb421d5ad3c186c7d061ff5dff41f488c11ccd1 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 30 Oct 2015 00:16:15 -0400 Subject: [PATCH] usercard fix for guests --- lib/persona.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/persona.js b/lib/persona.js index 3f1aff6..2b8cec7 100644 --- a/lib/persona.js +++ b/lib/persona.js @@ -180,7 +180,7 @@ $(document).ready(function() { var card = $(html); avatar.parents('a').after(card.hide()); - if (parseInt(app.user.uid, 10) === parseInt(data.uid, 10)) { + if (parseInt(app.user.uid, 10) === parseInt(data.uid, 10) || !app.user.uid) { card.find('.btn-morph').hide(); } else { card.find('.btn-morph').click(function(ev) {