mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 23:00:57 +00:00
Modify group msg notification
This commit is contained in:
4
views.py
4
views.py
@@ -547,9 +547,9 @@ def myhome(request):
|
||||
|
||||
# user notifications
|
||||
l = []
|
||||
notes = UserNotification.objects.filter(email=request.user.username)
|
||||
notes = UserNotification.objects.filter(to_user=request.user.username)
|
||||
for n in notes:
|
||||
if n.note_type == 'group_msg':
|
||||
if n.msg_type == 'group_msg':
|
||||
l.append(n.detail)
|
||||
|
||||
# my groups
|
||||
|
Reference in New Issue
Block a user