Commit Graph

940 Commits (a068d2221386d66aeaa952c849c3e1d3b45e14a4)

Author SHA1 Message Date
Aevann1 45753ee166 I hate programming 2022-08-01 21:37:57 +02:00
Aevann1 914c89c301 make deux redirection only happen in rdrama 2022-08-01 21:30:42 +02:00
Aevann1 e5a2980d1b normalizing request.full_path 2022-08-01 20:03:29 +02:00
Aevann1 8621e68044 fix frontpage redirecting 2022-07-23 09:23:55 +02:00
Aevann1 ddeba62aeb fixing infinite redirections 2022-07-23 09:22:17 +02:00
Aevann1 de011ef7b1 testing on prod 2022-07-23 09:17:38 +02:00
Aevann1 8547e6b71d redirect permabanned-cels to deux 2022-07-23 09:07:57 +02:00
Snakes eb55a6cc01
LGB: disable country club. 2022-07-19 21:50:08 -04:00
Aevann1 6689172013 fix pinning logic for holes 2022-07-13 23:20:56 +02:00
Aevann1 86717e37b2 refactor changelog 2022-07-13 23:03:11 +02:00
Aevann1 c4499968ad make pins toggle sort-specific 2022-07-13 21:32:28 +02:00
Aevann1 2d21863e19 replace "request.host" with "SITE" 2022-07-13 20:14:37 +02:00
Aevann1 5fb6bd86f9 remove "warm" sorting 2022-07-13 19:32:31 +02:00
Aevann1 b2de11cb1a add "pins" toggle to the frontpage 2022-07-13 19:31:35 +02:00
Aevann1 f6bf7400c3 do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2298056?context=8#context 2022-07-13 17:20:10 +02:00
Aevann1 0ebd721884 fix WPD sorting 2022-07-10 12:07:11 +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
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 38f6a6f81d remove special timefilter condition for "bump" sorting 2022-07-08 21:49:27 +02:00
Aevann1 a8fe49f232 kitchen sink commit, all over the place 2022-07-08 21:03:04 +02:00
Aevann1 ad1273995d notifications rework 2022-07-08 20:06:54 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +02:00
Snakes ed42f14a77 Fix frontlist failing on pin expiry.
Proximate cause of 500 error on frontpage is that `Query` has no
such method `remove(...)`. Merely removing the line can't guarantee
identical logic, but I'm not quite clear if explicit removal from the
Query pseudo-collection is necessary, or if the final `pins` variable
after `Query.all()` will be appropriately filtered. It appears to
work right in practice, and the risk of expired pins persisting for
one extra pageload for only one user seems relatively minor.
2022-07-03 13:04:13 -04:00
Aevann1 1f0f0ef0be messing with joins 2022-07-03 08:12:53 +02:00
Aevann1 ab2d9b492d add "warm" sorting - exact same as hot but pinned posts are shown in their normal positions instead of the top 2022-07-03 04:40:57 +02:00
Aevann1 bce4c13043 kitchen sink commit, all over the place 2022-07-02 12:44:05 +02:00
Aevann1 d0d15c319a Poll rework (#312)
* poll rework

* forgot to do joinedload on comments

* Fix logic errors with voting, SQL syntax.

Kitchen sink commit from review of poll-rework changes:
  1. Fix seed-db.sql syntax error.
  2. Fix SQL patch file duplication of *submissions* tables rather
     than one set of submissions and one for comments.
  3. Start makeshift SQL patch folder, since this is a large change
     that contributors may wish to apply to their local instances.
  4. Fix checkbox (non-`exclusive`) polls being unable to be
     unchecked. For consistency with `exclusive` polls, they should.
  5. Fix changing the option of an `exclusive` poll when both
     exclusive and non-exclusive options are present in one comment/
     post causing the non-exclusive options to become unchecked.
     (which, by my reading of SQLAlchemy `Query.one_or_none()`
     really could break quite badly in some cases).

* link relationships with their counterparts

* small modification to poll unchecking

Co-authored-by: TLSM <duolsm@outlook.com>
2022-07-02 08:48:04 +02:00
Aevann1 100677c1bb fix 500 error 2022-07-02 01:18:41 +02:00
Aevann1 f56be06eb8 add hole pinning 2022-07-02 01:11:48 +02:00
Aevann1 0c51979cbf remove frontpage exploit 2022-06-30 17:24:05 +02:00
Aevann1 c341be2866 show posts by users who block you 2022-06-29 05:07:00 +02:00
Snakes 13ceb8818d Commit txn in /notifications (by @Aevann1). 2022-06-26 03:01:01 -04:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 7a402d2449 order pins by new 2022-06-25 21:54:18 +02:00
Aevann1 10a47ca837 refactor sorting posts 2022-06-22 21:57:57 +02:00
Aevann1 8ecb4582d0 refactor sorting comments 2022-06-22 21:50:20 +02:00
Aevann1 17c7529977 add ceiling to link boost 2022-06-19 23:38:25 +02:00
Aevann1 57e63a2d8b hide autopoller/autobetter/autochoice from /comments 2022-06-16 14:34:35 +02:00
Aevann1 cec1994ff7 ppl with code contributor badge can now make "(changelog)" posts 2022-06-13 23:41:29 +02:00
Aevann1 1212804fbf exclude pings from link counter 2022-06-11 15:19:39 +02:00
Snakes 4db48a6ec9 Separate modaction notifs from inbox. 2022-06-10 08:28:46 -04:00
Snakes 5f7b38b477 Refactor stat timers, award timers.
Prior to this comment, the every-1d cron.py command was broken due
to lack of proper stats import. However, while refactoring this, it
was convenient to move other recurring tasks that had been stuffed in
odd places--not least `stats(...)`--into the new cron system. This
entailed a number of refactorings of other things.

1. Move stats(...) from static.py to helpers/stats.py.
2. Move hole inactivity purge task from stats(...) to routes/subs.py.
3. Move bot award timer checks from stats(...) to helpers/awards.py.
4. Unify award timer logic formerly in routes/front.py into the new
   helpers/awards.py.
2022-06-10 05:47:41 -04:00
Aevann1 d431ae1ecd re-prioitize effortposts (with a lot of links) in the frontpage 2022-06-07 13:26:39 +02:00
Aevann1 709c756660 fds 2022-05-28 16:55:22 +02:00
Aevann1 1d0da9df3c sfd 2022-05-28 02:46:44 +02:00
Aevann1 a749a7eea9 fds 2022-05-26 01:43:42 +02:00
Aevann1 7c858c6439 fds 2022-05-26 01:42:34 +02:00
Aevann1 9af50ae9b3 jannies can now block ppl 2022-05-24 22:43:49 +02:00
Aevann1 2b9dcb0c6a users here now 2022-05-24 22:19:18 +02:00
Aevann1 112a2679cc fsd 2022-05-22 22:05:44 +02:00
Aevann1 9df5e30d66 sdf 2022-05-14 19:13:20 +02:00
Aevann1 837d90bfa5 fsdgfdfg 2022-05-10 14:14:28 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
Aevann1 1a2869e256 sfd 2022-05-08 07:30:15 +02:00
Aevann1 f2039d7713 sfd 2022-05-07 06:13:19 +02:00
Aevann1 ca61569b44 nv 2022-05-06 06:55:15 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 29d15769f4 dsf 2022-05-04 02:42:44 +02:00
Aevann1 60481a175b sfd\ 2022-05-02 20:07:17 +02:00
Aevann1 9eeb214a24 fsd 2022-05-02 03:45:22 +02:00
Aevann1 f59286b202 fsd 2022-05-02 03:41:08 +02:00
Aevann1 56ea11ea28 sfd 2022-05-02 00:59:28 +02:00
Aevann1 0d08156cf9 fsd 2022-05-02 00:59:08 +02:00
Aevann1 195ea385e3 gfd 2022-05-02 00:56:19 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 039c121055 fds 2022-05-01 02:54:17 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 aefb322952 fds 2022-04-29 17:22:31 +02:00
Aevann1 e73fcbd56a sfd 2022-04-29 17:17:14 +02:00
Aevann1 8d732b8f7b fsd 2022-04-29 16:02:52 +02:00
Aevann1 e5014b4cf4 fsd 2022-04-29 02:02:00 +02:00
Aevann1 43563ec143 sfd 2022-04-28 03:02:37 +02:00
Aevann1 43366f4a28 fds 2022-04-26 02:26:27 +02:00
Aevann1 a895faefe5 fsd 2022-04-26 00:48:28 +02:00
Aevann1 5c21180705 Revert "vxc"
This reverts commit 4d0c7ba456.
2022-04-25 23:59:12 +02:00
Aevann1 ad47e9524a dfs 2022-04-25 21:52:30 +02:00
Aevann1 4d0c7ba456 vxc 2022-04-25 18:38:06 +02:00
Aevann1 bd6349d448 Revert "RESTORE CACHE"
This reverts commit 3d193357ef.
2022-04-19 22:22:24 +02:00
Aevann1 3d193357ef RESTORE CACHE 2022-04-19 22:21:47 +02:00
Aevann1 0f05a76522 fds 2022-04-18 00:16:02 +02:00
Aevann1 8214e2c6f9 fds 2022-04-18 00:13:37 +02:00
Aevann1 e048b691f1 dfs 2022-04-17 19:16:15 +02:00
Aevann1 ce2ffbd0e9 fds 2022-04-17 19:04:11 +02:00
Aevann1 1f5fa278d0 fsd 2022-04-17 11:23:42 +02:00
Aevann1 270e789dec fds 2022-04-16 19:01:46 +02:00
Aevann1 9685acd421 fds 2022-04-16 19:01:40 +02:00
Aevann1 6406fdd89a fsd 2022-04-16 18:59:52 +02:00
Aevann1 bd2d8539f7 fds 2022-04-16 18:57:44 +02:00
Aevann1 9551f7a548 fsd 2022-04-16 18:55:36 +02:00
Aevann1 e96c9a49cb fsd 2022-04-16 17:07:44 +02:00
Aevann1 2e07356b3e vdvg 2022-04-16 01:21:30 +02:00
Aevann1 6a8eff8393 fds 2022-04-16 01:19:27 +02:00
Aevann1 99cb01d9fc fdsfds 2022-04-15 18:28:08 +02:00
Aevann1 43006ba440 fds 2022-04-15 17:03:02 +02:00
Aevann1 6abaa2975a fds 2022-04-14 20:42:48 +02:00
Aevann1 a87a94ce60 fdsfds 2022-04-12 16:59:37 +02:00
Aevann1 231a55ea49 fds 2022-04-10 16:05:39 +02:00
Aevann1 30833f8130 fsd 2022-04-10 01:12:59 +02:00
Aevann1 2d9da9f1a3 fds 2022-04-05 01:14:49 +02:00
Aevann1 0c2e181d2a fds 2022-04-05 01:12:00 +02:00
Aevann1 ceaceffcd6 sfd 2022-04-04 23:14:21 +02:00
Aevann1 7a2cd0decc dfs 2022-04-04 21:27:51 +02:00
Aevann1 b2a73302ec fds 2022-04-04 21:27:43 +02:00
Aevann1 2c4d793f2b sfd 2022-04-04 21:27:27 +02:00
Aevann1 2ac5369a2c fds 2022-04-04 21:24:22 +02:00
Aevann1 3496d095b2 fds 2022-04-04 21:12:39 +02:00
Aevann1 cc9236fb88 wtf 2022-04-04 21:08:06 +02:00
Aevann1 4d60fcf0f0 gdf 2022-04-04 21:00:17 +02:00
Aevann1 08471bd35d fds 2022-04-04 20:59:14 +02:00
Aevann1 7156f216e4 sdf 2022-04-04 20:57:35 +02:00
Aevann1 6acd03e103 fds 2022-04-04 20:54:16 +02:00
Aevann1 bd72392448 fds 2022-04-04 20:52:20 +02:00
Aevann1 b09bbde529 fsd 2022-04-04 20:51:57 +02:00
Aevann1 d4c9761e03 fdfs 2022-04-04 20:51:44 +02:00
Aevann1 6135f2a3c3 fds 2022-04-04 20:51:32 +02:00
Aevann1 02f5dc4065 fsd 2022-04-04 20:51:15 +02:00
Aevann1 396dcc748d fds 2022-04-04 20:49:55 +02:00
Aevann1 12e0c794e4 fds 2022-04-04 20:48:46 +02:00
Aevann1 6fab5f144e fsd 2022-04-04 20:48:08 +02:00
Aevann1 e291d43640 fds 2022-04-04 20:47:00 +02:00
Aevann1 1f836769fc fds 2022-04-04 20:39:35 +02:00
Aevann1 9aadc6736d sfd 2022-04-04 20:38:03 +02:00
Aevann1 5ff7d64c84 devrama 2022-04-04 20:36:41 +02:00
Aevann1 16316ec88f fds 2022-04-04 20:32:03 +02:00
Aevann1 1ef60af223 fds 2022-04-04 20:31:04 +02:00
Aevann1 9e9873ffbf sfd 2022-04-04 20:29:21 +02:00
Aevann1 ee15466121 fds 2022-04-04 20:27:32 +02:00
Aevann1 be2cea3ea9 devrana 2022-04-04 20:25:34 +02:00
Aevann1 36f7449365 fds 2022-04-04 19:55:35 +02:00
Aevann1 1135096166 sdf 2022-04-04 19:54:34 +02:00
Aevann1 02f8729c5f devrama 2022-04-04 19:52:14 +02:00
Aevann1 6ca83dcc6c fds 2022-04-04 12:34:49 +02:00
Aevann1 df442ee2fe fds 2022-04-04 04:34:35 +02:00
Aevann1 82a749e9e3 sdf 2022-04-04 04:01:06 +02:00
Aevann1 889a8948c4 fsd 2022-04-04 03:41:20 +02:00
Aevann1 5868b07412 dfs 2022-04-04 03:27:08 +02:00
Aevann1 aaf7d680e4 fds 2022-04-04 03:26:48 +02:00
Aevann1 bfa2b44630 fds 2022-04-04 03:24:48 +02:00
Aevann1 7845461293 fds 2022-04-04 03:21:36 +02:00
Aevann1 60128ea50f fds 2022-04-04 03:20:09 +02:00
Aevann1 24d77fc3b7 fds 2022-04-04 03:19:02 +02:00
Aevann1 f56873c40b fds 2022-04-04 03:18:30 +02:00
Aevann1 4517505b53 fsd 2022-04-04 03:14:14 +02:00
Aevann1 7def94f50e fsd 2022-04-04 03:10:47 +02:00
Aevann1 4927bba558 fds 2022-04-04 03:03:13 +02:00
Aevann1 48f26e7e27 fs 2022-04-04 03:02:03 +02:00
Aevann1 55e4580707 fds] 2022-04-04 03:00:50 +02:00
Aevann1 4b4d78b35c fds 2022-04-04 02:59:22 +02:00