Update by natay on Wed May 15 10:18:29 EDT 2019 from H7-D25RF0PLGQ18
@@ -242,16 +242,6 @@ def create_post_from_json(json_dict):
return post
-def parse_mentioned_users(content):
-
- # Any word preceded by a @ is considered a user handler.
- handler_pattern = "\@[^\s]+"
- # Drop leading @
- users_list = set(x[1:] for x in re.findall(handler_pattern, content))
-
- return User.objects.filter(username__in=users_list)
-
-
def delete_post(post, request):
# Delete marks a post deleted but does not remove it.
# Remove means to delete the post from the database with no trace.
