diff --git a/files/helpers/media.py b/files/helpers/media.py index 7aec7de986..4ca2c33566 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -29,11 +29,6 @@ def process_files(): return body -def process_other(file): - req = requests.post("https://pomf2.lain.la/upload.php", files={'files[]': file}, timeout=20).json() - return req['files'][0]['url'] - - def process_audio(file): name = f'/audio/{time.time()}'.replace('.','') diff --git a/files/routes/front.py b/files/routes/front.py index 0744753a3f..c8337d1468 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -118,7 +118,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false" if sort == 'hot': ti = int(time.time()) + 3600 if SITE_NAME == 'rDrama': - posts = posts.order_by(-1000000*(Submission.realupvotes + 1 + Submission.comment_count/5 + func.least(10, (func.length(Submission.body_html)-func.length(func.replace(Submission.body_html,'