Fixing up notifications.
This commit is contained in:
parent
0bf73fef24
commit
22b2a95fd3
6 changed files with 80 additions and 33 deletions
|
@ -234,7 +234,7 @@ def create_tag(user, possible_book, name):
|
|||
|
||||
|
||||
def create_notification(user, notification_type, related_user=None, \
|
||||
related_book=None, related_status=None):
|
||||
related_book=None, related_status=None, related_import=None):
|
||||
''' let a user know when someone interacts with their content '''
|
||||
if user == related_user:
|
||||
# don't create notification when you interact with your own stuff
|
||||
|
@ -244,6 +244,7 @@ def create_notification(user, notification_type, related_user=None, \
|
|||
related_book=related_book,
|
||||
related_user=related_user,
|
||||
related_status=related_status,
|
||||
related_import=related_import,
|
||||
notification_type=notification_type,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue