Browse Source

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

pull/7/head
ferrahit67 4 years ago
parent
commit
6236c449eb
  1. 1
      hole.py

1
hole.py

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

Loading…
Cancel
Save