From: Bryan Date: Tue, 27 Jan 2015 19:09:39 +0000 (-0500) Subject: #393 properly checking if user is anonymous X-Git-Tag: release-20150131~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40fd1f1051015ddff2fbce7300bb47b88ecffef1;p=oweals%2Fkarmaworld.git #393 properly checking if user is anonymous --- diff --git a/karmaworld/apps/notes/gdrive.py b/karmaworld/apps/notes/gdrive.py index 3c55c87..2ebd531 100644 --- a/karmaworld/apps/notes/gdrive.py +++ b/karmaworld/apps/notes/gdrive.py @@ -240,7 +240,7 @@ def convert_raw_document(raw_document, user=None): # If we know the user who uploaded this, # associate them with the note - if user: + if user and not user.is_anonymous(): note.user = user NoteKarmaEvent.create_event(user, note, NoteKarmaEvent.UPLOAD) else: