forked from MarseyWorld/MarseyWorld
give the thumbnail thread their own db_session
parent
e896aaa1f7
commit
168e5d04b9
|
@ -875,7 +875,7 @@ def submit_post(v, sub=None):
|
||||||
abort(415)
|
abort(415)
|
||||||
|
|
||||||
if not post.thumburl and post.url:
|
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:
|
if not post.private and not post.ghost:
|
||||||
notify_users = NOTIFY_USERS(f'{title} {body}', v)
|
notify_users = NOTIFY_USERS(f'{title} {body}', v)
|
||||||
|
|
Loading…
Reference in New Issue