Fixes iteration over mentions dict
This commit is contained in:
parent
f1640399e3
commit
b76da26c98
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class CreateStatus(View):
|
||||||
# inspect the text for user tags
|
# inspect the text for user tags
|
||||||
content = status.content
|
content = status.content
|
||||||
mentions = find_mentions(request.user, content)
|
mentions = find_mentions(request.user, content)
|
||||||
for (_, mention_user) in mentions:
|
for (_, mention_user) in mentions.items():
|
||||||
# add them to status mentions fk
|
# add them to status mentions fk
|
||||||
status.mention_users.add(mention_user)
|
status.mention_users.add(mention_user)
|
||||||
content = format_mentions(content, mentions)
|
content = format_mentions(content, mentions)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue