give the thumbnail thread their own db_session

master
justcool393 2022-11-15 04:34:35 -06:00
parent e896aaa1f7
commit 168e5d04b9
1 changed files with 1 additions and 1 deletions

View File

@ -875,7 +875,7 @@ def submit_post(v, sub=None):
abort(415)
if not post.thumburl and post.url:
gevent.spawn(thumbnail_thread, post.id, g.db, v.id)
gevent.spawn(thumbnail_thread, post.id, db_session(), v.id)
if not post.private and not post.ghost:
notify_users = NOTIFY_USERS(f'{title} {body}', v)