1
0
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:
poetwang
2014-08-03 14:53:03 +08:00
parent 8be26fba93
commit 10ea577fb2

View File

@@ -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']]