From a66f0291d8c73b9d7f61ddd5b67027f3bc5dcd10 Mon Sep 17 00:00:00 2001 From: Aevann1 <59999695+Aevann1@users.noreply.github.com> Date: Sat, 1 Oct 2022 16:36:29 +0200 Subject: [PATCH 1/3] Create notice.txt --- notice.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 notice.txt diff --git a/notice.txt b/notice.txt new file mode 100644 index 000000000..73c8e3233 --- /dev/null +++ b/notice.txt @@ -0,0 +1 @@ +Sorry, we're moving to a new host right now, ETA 10 minutes or so From 2cf9c7560f9969f1d89b4e298e3dffde1c63cad2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 1 Oct 2022 18:29:16 +0200 Subject: [PATCH 2/3] remove unused legacy function --- files/helpers/media.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index 7aec7de98..4ca2c3356 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('.','') From 04895e1fac0e9254c1b8c2bd1756b8c32998af51 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 1 Oct 2022 19:17:58 +0200 Subject: [PATCH 3/3] remove my effortpost algo (cant have shit in detroit) --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 0744753a3..c8337d146 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,'