Don't give points when downloading own doc
[oweals/karmaworld.git] / karmaworld / apps / notes / views.py
index 349cd17416a1d19c07a793b6c759e9ea999a50be..b6cdaf46057075b82a5a4e6a02955c1ca9cac799 100644 (file)
@@ -348,7 +348,7 @@ def process_downloaded_note(request_user, note):
     """Record that somebody has downloaded a note"""
     if request_user.is_authenticated() and request_user != note.user:
         NoteKarmaEvent.create_event(request_user, note, NoteKarmaEvent.DOWNLOADED_NOTE)
-    if request_user.is_authenticated() and note.user:
+    if request_user.is_authenticated() and note.user and note.user != request_user:
         NoteKarmaEvent.create_event(note.user, note, NoteKarmaEvent.HAD_NOTE_DOWNLOADED)