Tweak comment ownership
This commit is contained in:
parent
728a900e68
commit
34b95116dc
@ -28,8 +28,11 @@ def notification_parse(notification):
|
|||||||
else:
|
else:
|
||||||
parent_comment_user = users_collection.find_one(
|
parent_comment_user = users_collection.find_one(
|
||||||
{'_id': node['parent']['user']})
|
{'_id': node['parent']['user']})
|
||||||
owner = "{0}'s {1}".format(parent_comment_user['username'],
|
if parent_comment_user['_id'] == node['user']:
|
||||||
node['parent']['node_type'])
|
user_name = 'their'
|
||||||
|
else:
|
||||||
|
user_name = "{0}'s".format(parent_comment_user['username'])
|
||||||
|
owner = "{0} {1}".format(user_name, node['parent']['node_type'])
|
||||||
|
|
||||||
context_object_type = node['parent']['node_type']
|
context_object_type = node['parent']['node_type']
|
||||||
context_object_name = owner
|
context_object_name = owner
|
||||||
|
Loading…
x
Reference in New Issue
Block a user