Commit Graph

48 Commits (eb80582a65e7f7083474e5eb18e844b660beedfa)

Author SHA1 Message Date
Aevann cadf2de31e do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/6286735#context 2024-04-20 20:13:34 +02:00
SneedBot a228185474 Revert "fix controversial listing having a lot of 1-upvote posts"
This reverts commit b80228ba13.
2024-02-12 17:52:44 +00:00
Aevann b80228ba13 fix controversial listing having a lot of 1-upvote posts 2024-02-12 19:50:45 +02:00
Aevann 0cd7714d61 same as last commit 2023-10-17 22:40:24 +03:00
Aevann 6c899deede try to fix controversial sorting 2023-10-17 22:39:07 +03:00
Aevann 3c26d4da80 sort removed and deleted comments too (instead of older -> newer) 2023-09-07 23:08:16 +03:00
Aevann 9ee45b4a24 remove unnecessary spaces and tabs 2023-09-07 18:26:31 +03:00
Aevann fade711992 only pin deleted objects to the bottom in the "hot" sorting (the default) 2023-09-07 11:57:32 +03:00
Aevann 3e21b935cb remove "saves" sort for comments (cuz error) 2023-09-05 18:42:04 +03:00
Aevann 6b66c632ef simpler syntax 2023-09-04 21:28:38 +03:00
Aevann ed3ab121d0 do what g-sex wants 2023-08-16 22:13:11 +03:00
Aevann 98221cbd57 pin deleted and removed objects to the bottom to prevent bloat 2023-08-13 17:35:57 +03:00
Aevann 7f87343d7f only filter if its not 'all' 2023-08-11 18:41:57 +03:00
Aevann 3985254d9d fix broken query 2023-08-11 18:40:29 +03:00
Aevann c7f606baa9 increase dropoff exponenet to 1.4 2023-07-30 13:00:56 +03:00
Aevann 8beb2d7e8e remove typing (useless code bloat) 2023-07-30 03:42:06 +03:00
Aevann b30c37cd99 add Random sort 2023-07-26 02:23:28 +03:00
Aevann 39ff09e777 restore bump sort 2023-07-26 01:59:49 +03:00
Aevann 6f6c59e7b3 remove bump sort since it times out when combined with the "all" filter 2023-07-22 19:00:25 +03:00
Aevann 32fa466e6a rename submissions to posts 2023-06-08 02:26:32 +03:00
Aevann 710308dd00 do this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/4104704#context 2023-05-13 06:31:45 +03:00
Aevann 4cf23b106c do this https://rdrama.net/@Aevann/wall/comment/4137924#context 2023-05-12 18:39:45 +03:00
Aevann 4056ce1e91 fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4105083#context 2023-05-07 22:36:59 +03:00
Aevann 85a3a9f6ee Revert "decrease dropoff exponent from 1.5 to 1.35"
This reverts commit 12bdfe5fe8.
2023-05-06 15:29:53 +03:00
Aevann 12bdfe5fe8 decrease dropoff exponent from 1.5 to 1.35 2023-05-06 15:28:42 +03:00
Aevann 86ee28d024 increase postdropoff and constantize LNTERNETCUSTODIAN_ID 2023-05-06 15:18:26 +03:00
Aevann 615800ca6d do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4062923#context 2023-04-29 17:45:05 +02:00
Aevann e15bddfc9e add "views" sort 2023-04-27 16:30:35 +02:00
Aevann 984aecec9a destroy the shadow realm (#135)
Co-authored-by: Aevann <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#135
2023-02-27 15:38:12 +00:00
Aevann 1eb0cdffac add progstack to WPD too (fixed) 2023-01-24 12:05:16 +02:00
Aevann 0a42bde52b Revert "add progstack to WPD too"
This reverts commit 966d6d2161.
2023-01-24 12:02:33 +02:00
Aevann 966d6d2161 add progstack to WPD too 2023-01-24 08:50:09 +02:00
justcool393 ab41db22b7 [DO NOT MERGE] multiple sub banners (#59)
allows multiple sub banners

Snakes note: By request of Carp, especially for WPD.

Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#59
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-11 23:44:34 +00:00
justcool393 8f2f48d6d1
[DO NOT MERGE] import detanglation (#442)
* move Base definition to files.classes.__init__.py

* fix ImportError

* move userpage listing to users.py

* don't import the app from classes

* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value

* card view: sneed (user db schema)

* cloudflare: use DEFAULT_CONFIG_VALUE

* const: set default values

* decouple media.py from __main__

* pass database to avoid imports

* import cleanup and import request not in const, but in the requests mega import

* move asset_submissions site check to __init__

* asset submissions feature flag

* flag

* g.is_tor

* don't import request where it's not needed

* i think this is fine

* mail: move to own routes and helper

* wrappers

* required wrappers move

* unfuck wrappers a bit

* move snappy quotes and marseys to stateful consts

* marsify

* :pepodrool:

* fix missing import

* import cache

* ...and settings.py

* and static.py

* static needs cache

* route

* lmao all of the jinja shit was in feeds.py amazing

* classes should only import what they need from flask

* import Response

* hdjbjdhbhjf

* ...

* dfdfdfdf

* make get a non-required import

* isort imports (mostly)

* but actually

* configs

* reload config on import

* fgfgfgfg

* config

* config

* initialize snappy and test

* cookie of doom debug

* edfjnkf

* xikscdfd

* debug config

* set session cookie domain, i think this fixes the can't login bug

* sdfbgnhvfdsghbnjfbdvvfghnn

* hrsfxgf

* dump the entire config on a request

* kyskyskyskyskyskyskyskyskys

* duifhdskfjdfd

* dfdfdfdfdfdfdfdfdfdfdfdf

* dfdfdfdf

* imoprt all of the consts beacuse fuck it

* 😭

* dfdfdfdfdfdfsdasdf

* print the entire session

* rffdfdfjkfksj

* fgbhffh

* not the secret keys

* minor bug fixes

* be helpful in the warning

* gfgfgfg

* move warning lower

* isort main imports (i hope this doesn't fuck something up)

* test

* session cookie domain redux

* dfdfdfd

* try only importing Flask

* formkeys fix

* y

* :pepodrool:

* route helper

* remove before flight

* dfdfdfdfdf

* isort classes

* isort helpers

* move check_for_alts to routehelpers and also sort imports and get rid of unused ones

* that previous commit but actkally

* readd the cache in a dozen places they were implicitly imported

* use g.is_tor instead of request.headers. bla bla bla

* upgrade streamers to their own route file

* get rid of unused imports in __main__

* fgfgf

* don't pull in the entire ORM where we don't need it

* features

* explicit imports for the get helper

* explicit imports for the get helper redux

* testing allroutes

* remove unused import

* decouple flask from classes

* syntax fix also remember these have side fx for some reason (why?)

* move side effects out of the class

* posts

* testing on devrama

* settings

* reloading

* settingssdsdsds

* streamer features

* site settings

* testing settings on devrama

* import

* fix modlog

* remove debug stuff

* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6

* archiveorg to _archiveorg

* skhudkfkjfd

* fix cron for PCM

* fix bugs that snekky wants me to

* Fix call to realbody passing db, standardize kwarg

* test

* import check_for_alts from the right place

* cloudflare

* testing on devrama

* fix cron i think

* shadow properly

* tasks

* Remove print which will surely be annoying in prod.

* v and create new session

* use files.classes

* make errors import little and fix rare 500 in /allow_nsfw

* Revert "use files.classes"

This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.

* pass v to media functions rather than using g

* fix

* dfdfdfdfd

* cleanup, py type checking is dumb so don't use it where it causes issues

* Fix some merge bugs, add DEFAULT_RATELIMIT to main.

* Fix imports on sqlalchemy expressions.

* `from random import random` is an error.

* Fix replies db param.

* errors: fix missing import

* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text

* Fix signup formkey.

* fix 2 500s

* propagate db to submissions

* fix replies

* dfdfdfdf

* Fix verifiedcolor.

* is_manual

* can't use getters outside of an app context

* don't attempt to do gumroad on sites where it's not enabled

* don't attempt to do gumraod on sites's where it's unnecessary

* Revert "don't attempt to do gumroad on sites where it's not enabled"

This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.

* fix 500

* validate media type

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
justcool393 be055d1d82 fix "52yr ago" bug 2022-10-15 23:57:55 -07:00
justcool393 60284daa8e replace all of the duplicated age strings with make_age_string 2022-10-15 11:11:43 -07:00
Aevann1 948bd21f9b Revert "minor change in sorting_and_time"
This reverts commit 3a3cb0da4d.
2022-10-13 18:21:26 +02:00
Aevann1 3a3cb0da4d minor change in sorting_and_time 2022-10-13 18:21:00 +02:00
Snakes 166e33dc38
Clarify architecture of sort_objects. 2022-10-12 04:05:26 -04:00
Aevann1 2aa281e8c8 refactor sorting again (untested) 2022-10-12 09:03:28 +02:00
Aevann1 b1abd33835 refactor sorting 2022-10-12 08:10:11 +02:00
Aevann1 e3a3cbd358 add "hot" comment sorting 2022-10-11 18:41:09 +02:00
Snakes 4a54c6219a
Add trailing final newlines to source files.
Touched a ton of files to finally standardize on having trailing
final newlines, as best practice recommends and so our devs stop
accidentally fighting each other over it.

This was performed automatically with the following:
git ls-files -z '*.py' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
git ls-files -z '*.css' | while IFS= read -rd '' f; \
    do tail -c1 < "$f" | read -r _ || echo >> "$f"; done
2022-09-29 01:43:29 -04:00
Aevann1 df2f5d3b61 restore downvotes acting like upvotes in rdrama for comments 2022-08-19 14:50:35 +02:00
Aevann1 91fe866f47 fix comment sorting 2022-07-18 04:08:43 +02:00
Aevann1 870a0f7084 fix 500 errors 2022-07-10 11:32:53 +02:00
Aevann1 c214d4b7cc change sorting logic for WPD 2022-07-10 11:29:55 +02:00
Aevann1 ec3b4357cf refactor sorting and time filter 2022-07-09 12:32:49 +02:00