diff --git a/files/routes/front.py b/files/routes/front.py index f3fb6ef54..4d872377c 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -364,7 +364,7 @@ def random_post(v): total = x.count() n = random.randint(0, total - 1) - post = x.order_by(Submission.id.asc()).offset(n).limit(1).first() + post = x.offset(n).limit(1).first() return redirect(post.permalink) @cache.memoize(timeout=86400)