修复发树洞时自动关注失败和无法利用tag搜索的bug

This commit is contained in:
2021-12-20 11:38:54 +08:00
parent ea3bf7a3b1
commit 6236c449eb

View File

@@ -250,6 +250,7 @@ def do_post():
)
db.session.add(p)
db.session.commit() # 需要先commit才能获得post的id
tags = re.findall('(^|\\s)#([^#\\s]{1,32})', content)
for t in tags: