Commit Graph

595 Commits (b59e4cadaaa0b77baacaf8bf3c98d8159714172c)

Author SHA1 Message Date
Aevann1 fb1b1279fe dont give me modmail notifs in WPD 2022-09-21 21:38:29 +02:00
Aevann1 61c586d7cc make 3 routes auth_required instead of auth_desired 2022-09-20 02:54:10 +02:00
Aevann1 7d39cdb520 minor auth_desired refactor 2022-09-20 02:51:01 +02:00
Aevann1 696423d174 add /donate page 2022-09-20 01:59:24 +02:00
Aevann1 f54791cc4c remove categories 2022-09-19 20:04:30 +02:00
Aevann1 bb28d2d2a3 delete /order 2022-09-19 19:13:24 +02:00
Aevann1 4519db0e57 make me get notifs for modmail again 2022-09-19 19:10:37 +02:00
Aevann1 6bd0043248 sneed 2022-09-18 00:06:29 +02:00
Aevann1 566c5b19e3 fuck sake 2022-09-14 13:02:46 +02:00
Aevann1 a6ce6135d8 fix 2022-09-14 13:00:46 +02:00
Aevann1 c2f397df40 show the original file in /marseys 2022-09-14 12:55:35 +02:00
outruncolors 3ebccf35d1
Add order page (#353)
* Add order page route

* Initial backend post route

* Move to static and prevent logged in users

* Update files/routes/static.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Make requested changes

* Last snake changes

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
2022-09-13 21:21:25 -05:00
Aevann1 cc0f2059c3 more descriptive success messages 2022-09-12 07:23:08 +02:00
Aevann1 cefd68755d stop the print spam 2022-09-11 03:56:47 +02:00
Snakes 0950dc81b8
Move asset submission routes out of static.py. 2022-09-10 03:56:37 -04:00
Aevann1 0ddacad599 add prefixes for asset_submissions 2022-09-10 07:49:39 +02:00
Aevann1 1a64ba3db8 hat submission UI 2022-09-10 07:37:11 +02:00
Aevann1 faac45b425 allow carp to change marsey name 2022-09-10 06:36:24 +02:00
Aevann1 89f4a88f04 .strip() 2022-09-10 05:04:58 +02:00
Aevann1 efc0ea205b fix missing import 2022-09-10 03:09:33 +02:00
Aevann1 10ce1fe122 keep OG images 2022-09-10 02:52:52 +02:00
Aevann1 216b0c33f6 fix retarded /transfers logic for API users 2022-09-10 02:30:25 +02:00
Aevann1 8943024e17 cosmetic change 2022-09-10 02:18:52 +02:00
Aevann1 c638c8be80 restore error codes 2022-09-10 02:17:31 +02:00
Aevann1 7a8395fefb better feedback in /submit/marseys 2022-09-10 02:07:17 +02:00
Aevann1 fbbb2c2ceb marsey submission stuff 2022-09-10 01:41:54 +02:00
Aevann1 9419032201 useless commit 2022-09-09 11:41:08 +02:00
Aevann1 500c1ba3c1 check filetype (thx drT) 2022-09-09 11:31:11 +02:00
Aevann1 91f3069001 more marsey shit 2022-09-09 11:21:17 +02:00
Aevann1 b8cde6ca60 restrict approving and rejecting marseys to the fish 2022-09-09 11:15:16 +02:00
Aevann1 47890d771d add Marsey Submission UI 2022-09-09 11:13:50 +02:00
Aevann1 e793a1ab3a show a list of blockers 2022-09-05 22:23:35 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Aevann1 88a2c69659
Hats (#348)
* hat

* hats

* hats 2

* hats

* hats 4

* hats 5

* hats
2022-09-03 01:58:55 +02:00
Snakes c506ff0c40 Add admin mute for user reports and modmail. 2022-09-01 17:30:15 -04:00
Aevann1 d0083b579f expand 593b74c969 + make AEVANN_ID default 0 2022-08-13 05:11:44 +02:00
Aevann1 26959e0751 murder deuxrama.net 2022-08-11 18:46:11 +02:00
Snakes 1411018f8d Add post categories.
Implemented for LGB but can likely be used for WPD and other future
sites. Similar to a reddit post flair. Provides:
  - Admin panel for Category management.
  - Category selection on post submission.
  - 'Recategorize' post action.
2022-08-07 02:57:30 -04:00
Aevann1 e5a2980d1b normalizing request.full_path 2022-08-01 20:03:29 +02:00
Aevann1 ddeba62aeb fixing infinite redirections 2022-07-23 09:22:17 +02:00
Snakes 3225a2a3d4
LGB: disable awards, badges. 2022-07-19 19:59:39 -04:00
Snakes 001caf0c98
LGB: Add static /kb/ route; two static pages. 2022-07-18 04:39:21 -04:00
Snakes eef6c25b0b
LGB: Permission block, follow, voters visibility. 2022-07-18 03:17:45 -04:00
Aevann1 de66243ea0 show marsey authors in deux 2022-07-15 03:25:04 +02:00
Aevann1 612ea7354b show marsey author in deux 2022-07-15 03:13:03 +02:00
Aevann1 2d21863e19 replace "request.host" with "SITE" 2022-07-13 20:14:37 +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
Snakes 02e096e5af LGB: add custom emoji list. 2022-07-09 00:32:48 -04:00
Aevann1 1f0f0ef0be messing with joins 2022-07-03 08:12:53 +02:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 0b2d0a981d fix broken images 2022-06-22 17:54:25 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Aevann1 5520447d55 make modmail messages use the files refactor 2022-06-18 19:41:24 +02:00
Aevann1 b34dd88560 remove legacy code in video upload (thx @everyone) 2022-06-18 18:23:10 +02:00
Aevann1 ccdabcba29 allow uploading of all types of files (using lain.la)
+ allow multiple file upload in bios and messaging admins
2022-06-18 17:53:34 +02:00
Aevann1 f60db1598d replace "g.db.query" on pkeys with the much more efficient "g.db.get" 2022-06-18 02:57:23 +02:00
Aevann1 8c137fef2b verify cloudflare 2022-06-18 01:22:56 +02:00
Aevann1 96d7df327f Revert "CF verification"
This reverts commit 62644f452f.
2022-06-18 01:19:42 +02:00
Aevann1 62644f452f CF verification 2022-06-18 01:18:06 +02:00
Aevann1 80852cc395 specify encoding when reading text files 2022-06-18 00:19:18 +02:00
Snakes c46f785229 Loosen auth requirement on /directory. 2022-06-17 16:38:30 -04:00
Snakes f04dffe1a7 Create directory page for sidebar megathreads.
The sidebar previously did not prioritize information as well as
desired, and the proliferation of megathreads led to a number of
icons occupying frontpage visual space despite not often being
useful to frontpage use cases. Therefore, they have been moved to
a new page.

The /directory page is predominantly created with template logic,
and it should be within the ability of our semi-technical jannie
staff to maintain.
2022-06-15 03:27:04 -04:00
Aevann1 d09634bf20 make log show 0 actions when u filter by a kind that doesn't exist
(instead of showing all actions)
2022-06-13 18:41:46 +02:00
Aevann1 cf827bdf38 unhide some mod actions from non-jannies 2022-06-13 15:37:46 +02:00
Snakes 3ebba0465a Close more shadowbanned user info leaks.
1. Missed the notif for unfollowing a non-fish'd user in fb52003404.
2. "Get Them Help" button showed username.
3. Gift coins/mbux showed username and allowed a message.
4. Global block list showed username.
5. User profile appeared to logged-out and non-jannies.
2022-06-12 23:03:36 -04:00
Aevann1 964318fe5d fix push notifications 2022-06-11 00:14:03 +02: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 3a9f3c329f fix hole deletion 2022-06-10 00:13:33 +02:00
Aevann1 10f3d4035d delete inactive holes 2022-06-10 00:07:17 +02:00
Snakes 152315f73e cron: Move charts from static to helper. 2022-06-07 08:31:24 -04:00
Snakes 70b96162a7 Fix banned domain info leak in modlog. 2022-06-06 22:18:56 -04:00
Snakes df3127785a Rename 'shit emojis.json' for sanity. 2022-06-02 05:15:41 -04:00
Aevann1 27d81f6506 for rdrama.net, made it so the weekly chart always start before the site got made, and added variable chart width to accomodate that 2022-05-30 05:16:48 +02:00
Aevann1 ecb4a56047 fixed global variable bug in /stats 2022-05-30 01:01:40 +02:00
Aevann1 6584919d41 sdf 2022-05-28 22:25:28 +02:00
Aevann1 cd2380fb33 fds 2022-05-28 04:20:31 +02:00
HappyDOGE d6b4c3b166 Added offline service worker (serves a static webpage when no internet connection is present) (#285)
based
2022-05-27 21:23:01 +02:00
Aevann1 50b995d3a0 fds 2022-05-25 22:16:26 +02:00
Aevann1 bbd851210e fds 2022-05-24 17:32:49 +02:00
Aevann1 0bd15d3914 burgers? 2022-05-23 21:00:14 +02:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Aevann1 9bc310a6a4 sfd 2022-05-22 19:23:52 +02:00
Aevann1 ee9b5f2bcd g 2022-05-22 18:15:40 +02:00
Aevann1 236ce22c52 fsd 2022-05-22 18:14:32 +02:00
Aevann1 969d1898b5 vid refactor 2022-05-22 18:13:19 +02:00
Aevann1 db3ed7961f idk 2022-05-19 20:36:26 +02:00
Aevann1 ef0046f091 fsd 2022-05-18 21:29:07 +02:00
Aevann1 0e8a2ad1c8 sdf 2022-05-17 18:03:59 +02:00
Snakes 32416e71fa Fix /stats distinct user count fields.
The COUNT(*) performance optimization in b71ae6cc74 was a bit
overzealous and wound up breaking four fields in /stats intended to
count distinct users who performed certain activities. These fields
were returned to their original implementation.
2022-05-14 17:24:55 -04:00
DrTransmisia 04aefc2462 worst asymptotic behavior (#259)
* ditched the log search in favor of the polynomial search otherwise poor carp can't search for xis boyfriend marseysamhyde querying "hyde" and instead of properly tag it ["sam", "hyde"] I had to ditch the search alg made in the image of G-d

* le new line

* anton-d on all dramaverse
2022-05-11 19:49:27 +02:00
DrTransmisia 99eeb3ee4b Bussysussy (#256)
* improved static emojis descriptions and file readability

* perf improv. 2

* some minor tweaks

* final tweaks to js and mobile css

* very final
2022-05-10 02:58:57 +02:00
Aevann1 b71ae6cc74 sf 2022-05-09 13:21:49 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
Aevann1 028563ad7d bgd 2022-05-07 08:04:14 +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 79f3412aae Merge branch 'bussy_refactor' of https://github.com/DrTransmisia/rDrama into frost 2022-05-05 23:12:07 +02:00
Doctor Steven Transmisia e526a4fd1c re-factoring emoji system\n\nnow should be less CPU intesive although most of the load seems to come from the img loading itself and it is not address in this commit 2022-05-05 15:47:47 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 46e391b5a7 fsd 2022-05-04 23:32:30 +02:00
Aevann1 2132703204 fds 2022-05-03 21:59:54 +02:00
Aevann1 a31d0598cc fix 2022-05-03 06:59:47 +02:00
Aevann1 47d01ed00b vb 2022-05-03 04:15:35 +02:00
Aevann1 a6f6e64246 fhg 2022-05-02 21:32:15 +02:00
Aevann1 df90e71f20 fsd 2022-05-02 21:30:12 +02:00
Aevann1 8b24faf9fd sdf 2022-05-02 20:56:10 +02:00
Aevann1 f9a142a889 sfd 2022-05-02 20:54:53 +02:00
Aevann1 dbe0bf076e tre 2022-05-02 20:50:43 +02:00
TLSM 63d344c2d0 Add badge quantity and rarity to /badges. (#238)
Implements feature request to know how many of each badge exists and
to have a 'rarity', a la Steam or PSN badges, relative to number of
non-lurker users.

Because Postgres `COUNT()`s are notoriously costly, /badges has been
memoized for 1hr to avoid a DOS target.
2022-05-02 20:14:06 +02:00
Aevann1 4d7e79bef3 6yutg 2022-05-02 04:11:01 +02:00
Aevann1 c636f08732 sdgf 2022-05-02 04:00:14 +02:00
Aevann1 5a7d019cdd sfd 2022-05-02 03:54:07 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 e5014b4cf4 fsd 2022-04-29 02:02:00 +02:00
Aevann1 a11c37f7be fd 2022-04-26 14:59:28 +02:00
Aevann1 f306d76373 sfd 2022-04-25 23:16:32 +02:00
Aevann1 09e15a1961 fds 2022-04-25 23:15:02 +02:00
Aevann1 3b3c0927f3 fsd 2022-04-25 23:10:55 +02:00
Aevann1 1b849c57c1 fds 2022-04-25 23:04:50 +02:00
Aevann1 1bdfb1afdf fsd 2022-04-25 22:31:30 +02:00
Aevann1 0ed35ce69f vxc 2022-04-25 21:42:35 +02:00
Aevann1 0cbd70a8d6 fad 2022-04-24 22:39:37 +02:00
Aevann1 b554065c49 vcx 2022-04-24 19:30:05 +02:00
Aevann1 457a717075 fds 2022-04-24 00:09:25 +02:00
Aevann1 80346a6377 fds 2022-04-22 17:45:26 +02:00
Aevann1 031d9c52e0 fds 2022-04-21 18:10:15 +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 c2815804c9 gf 2022-04-19 20:19:12 +02:00
Aevann1 78ea56837f fds 2022-04-17 22:20:40 +02:00
Aevann1 62bfc5e629 fsd 2022-04-16 17:05:33 +02:00
reality500 5d6885e5bf Add logged_out redirect (#227) 2022-04-14 00:54:32 +02:00
Aevann1 ce7ae3dbd3 fds 2022-04-11 13:25:58 +02:00
Aevann1 49c1db511d gfd 2022-04-10 16:56:38 +02:00
Aevann1 2dc99c8d18 fds 2022-04-07 03:18:46 +02:00
Aevann1 bec149c6ec fds 2022-04-04 22:00:06 +02:00
Aevann1 889a8948c4 fsd 2022-04-04 03:41:20 +02:00
Aevann1 c9b3e8528d fsd 2022-04-02 21:42:21 +02:00
Aevann1 7b28b810d0 gfd 2022-04-02 21:35:27 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 ae82ada424 fsd 2022-04-02 18:54:27 +02:00
Aevann1 4851bb896c fds 2022-03-31 19:16:13 +02:00
Aevann1 b538d2a24c gdfg 2022-03-31 18:28:53 +02:00
Aevann1 1042072ad8 fsd 2022-03-31 16:25:49 +02:00
Aevann1 3a3157def3 df 2022-03-29 19:32:36 +02:00
Aevann1 4e3e54ef22 fds 2022-03-26 20:13:49 +02:00
Aevann1 b74c8711d7 fd 2022-03-26 00:30:15 +02:00
Aevann1 cb9087a0d9 fds 2022-03-22 05:45:30 +02:00
Aevann1 ffe1964981 fds 2022-03-21 23:31:16 +02:00
Aevann1 0293f60453 fart 2022-03-19 21:15:13 +02:00
Aevann1 28e9053499 fds 2022-03-19 20:15:12 +02:00
Aevann1 549c9ba394 arrr 2022-03-19 20:12:14 +02:00
Aevann1 e3a8d03549 cmon 2022-03-19 16:59:56 +02:00
Aevann1 8abfbd5cdf sfd 2022-03-06 02:31:19 +02:00
Aevann1 7e1311195d fart 2022-03-06 00:09:46 +02:00
Aevann1 c897c73fbf done queen 2022-03-06 00:09:06 +02:00
Aevann1 b7ab468ae0 jesus christ im an idiot 2022-03-03 22:22:23 +02:00
Aevann1 519c7414f3 gfd 2022-02-25 15:33:32 +02:00
Aevann1 db61d95e1c emoji 2022-02-25 14:43:25 +02:00
Aevann1 d38f5e3c63 e 2022-02-24 20:31:28 +02:00
Aevann1 3636b9d69b bbb 2022-02-24 19:48:14 +02:00
Aevann1 14c7148eed fd 2022-02-24 10:28:13 +02:00
Aevann1 15aa2bfc0a vc 2022-02-22 11:15:45 +02:00
Aevann1 587961af82 jh 2022-02-22 06:48:21 +02:00
Aevann1 98722e65e0 fd 2022-02-22 06:47:48 +02:00
Aevann1 dbbcf7b5e0 fd 2022-02-22 06:47:35 +02:00
Aevann1 ec8472a00d fd 2022-02-22 06:47:19 +02:00
Aevann1 4e7a3ab659 dfg 2022-02-22 06:46:44 +02:00
Aevann1 833009bd14 gdf 2022-02-21 03:58:12 +02:00
Aevann1 b48cc5314f bv 2022-02-21 03:35:01 +02:00
Aevann1 90f1a42835 cbv 2022-02-18 12:24:10 +02:00
Aevann1 9c4dcb1144 gf 2022-02-16 03:42:11 +02:00
Aevann1 729e4a4c62 g 2022-02-16 03:16:01 +02:00
Aevann1 e8057ca010 gfd 2022-02-15 01:14:59 +02:00
Aevann1 bfaeff72b4 sdf 2022-02-14 23:00:59 +02:00
Aevann1 8d77d0e982 gdf 2022-02-11 20:44:12 +02:00
Aevann1 3bc88b8c06 gf 2022-02-11 17:02:27 +02:00
Aevann1 bcb66c6f72 vb 2022-02-07 17:07:46 +02:00
Aevann1 022e300d2f SDF 2022-02-06 12:54:05 +02:00
Aevann1 5ade054494 sd 2022-02-04 10:59:12 +02:00
Aevann1 27766290a9 vxc 2022-02-03 08:39:02 +02:00
Aevann1 50a7cfc0c1 xvc 2022-02-01 02:07:15 +02:00
Aevann1 59027a7276 fds 2022-02-01 02:03:39 +02:00
Aevann1 26bfdd4f33 sfd 2022-02-01 01:10:24 +02:00
Aevann1 52b7fe533e vcxcvx 2022-01-28 04:54:50 +02:00
Aevann1 f6a11422c8 cxcx 2022-01-28 03:49:32 +02:00
Aevann1 7ed6c6e470 dssd 2022-01-28 03:49:09 +02:00
Aevann1 eb5bfcddee cx 2022-01-25 01:40:34 +02:00
Aevann1 c26b0cc2d8 xc 2022-01-24 23:49:12 +02:00
Aevann1 0d5b819b33 cvcv 2022-01-24 23:41:13 +02:00
Aevann1 1c85d271cb fd 2022-01-24 23:04:35 +02:00
Aevann1 eb90985c48 xc 2022-01-24 23:04:16 +02:00
Aevann1 e493592a23 vc 2022-01-24 22:26:15 +02:00
Aevann1 15cc5c612e vc 2022-01-24 21:40:58 +02:00
Aevann1 d808a5c0a5 xvc 2022-01-24 21:06:41 +02:00
Aevann1 091b6fad7d vc 2022-01-24 18:21:54 +02:00
Aevann1 8b381284c6 yolo 2022-01-24 01:06:34 +02:00
Aevann1 c8e3be1c39 fdsfsd 2022-01-23 21:51:56 +02:00
Aevann1 527c9da071 fdssfd 2022-01-23 17:29:13 +02:00