diff --git a/files/routes/posts.py b/files/routes/posts.py index 94bde74d8..ff733db8b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -678,7 +678,7 @@ def submit_post(v, sub=None): if not p.private: execute_snappy(p, v) - g.db.commit() #Necessary, do NOT remove + g.db.flush() #Necessary, do NOT remove if not p.thumburl and p.url and p.domain != SITE: gevent.spawn(thumbnail_thread, p.url, p.id)