Adding explore endpoint and fixing bugs

This commit is contained in:
Yusur 2019-11-22 18:20:32 +01:00
parent d40a8b9b6b
commit 29cf1532f7
6 changed files with 73 additions and 33 deletions

View file

@ -198,7 +198,7 @@ def check_access_token(token):
if h.hexdigest()[:32] == hh:
return user
def create_mentions(cur_user, text):
def create_mentions(cur_user, text, privacy):
# create mentions
mention_usernames = set()
for mo in re.finditer(r'\+([A-Za-z0-9_]+(?:\.[A-Za-z0-9_]+)*)', text):