mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
[api2] Fix extracting email from user notification detail
This commit is contained in:
@@ -187,9 +187,10 @@ def get_group_and_contacts(email):
|
|||||||
replies_json.append(d)
|
replies_json.append(d)
|
||||||
replynum = replynum + 1
|
replynum = replynum + 1
|
||||||
elif n.is_user_message():
|
elif n.is_user_message():
|
||||||
if n.detail not in contacts:
|
msg_from = n.user_message_detail_to_dict()['msg_from']
|
||||||
contacts.append(n.detail)
|
if msg_from not in contacts:
|
||||||
umsgnums[n.detail] = umsgnums.get(n.detail, 0) + 1
|
contacts.append(msg_from)
|
||||||
|
umsgnums[n.detail] = umsgnums.get(msg_from, 0) + 1
|
||||||
|
|
||||||
for r in replies_json:
|
for r in replies_json:
|
||||||
r['msgnum'] = replies[r['msg_id']]
|
r['msgnum'] = replies[r['msg_id']]
|
||||||
|
Reference in New Issue
Block a user