Commit Graph

517 Commits (7c1eb4c6e39685f7c9ed101dbd041c7a42fb5f38)

Author SHA1 Message Date
Aevann1 8319aefe1c get it ready for pcm 2022-09-25 05:29:38 +02:00
Aevann1 c2a189012b redirect instead of rendering 2022-09-25 05:21:41 +02:00
Aevann1 962cf66bcd flush printed shit 2022-09-25 05:17:15 +02:00
Aevann1 ae3b81bb82 fix 2022-09-25 05:11:18 +02:00
Aevann1 f4b41f0049 make addition and removal of channels happen instantly (testing in devrama) 2022-09-25 05:08:44 +02:00
Aevann1 677a31f80d strip input [/live] 2022-09-24 02:21:32 +02:00
Aevann1 b32a399925 fix 2022-09-24 02:11:40 +02:00
Aevann1 b0d1b1f157 fix /live ordering 2022-09-23 23:09:19 +02:00
Aevann1 84f4256c81 fix last commit 2022-09-23 23:01:38 +02:00
Aevann1 1b3fa8a63e same as last commit 2022-09-23 22:59:45 +02:00
Aevann1 a63d4940ae fix PCM /live list 2022-09-23 22:58:10 +02:00
Snakes 1cf5ec9e0d Revert "PCM: update live list in background."
This reverts commit 3acdb44a98.
2022-09-23 15:41:04 -04:00
Snakes 3acdb44a98
PCM: update live list in background. 2022-09-22 19:39:26 -04:00
Aevann1 495cc60a26 fix /live 2022-09-23 00:27:38 +02:00
Aevann1 ada5ab61a6 validate inputted channel id 2022-09-23 00:02:15 +02:00
Aevann1 2ef91698f4
allow PCM chadmins to add or remove channels (#365)
* testing on devrama

* fix for devrama

* fix

* fix

* fix

* fix

* fix

* fix

* test

* fix

* test

* test

* commit
2022-09-22 23:40:32 +02:00
Aevann1 5c7ff17512 remove "/live" from url for offline streamesr 2022-09-22 20:26:06 +02:00
Aevann1 553218aaa5 make /live a cached cron job 2022-09-22 04:33:45 +02:00
Aevann1 59f7a7655b remove ordering as a test 2022-09-22 04:29:50 +02:00
Aevann1 71309f86fb order by viewer count 2022-09-22 04:22:21 +02:00
Aevann1 c20fc34704 dfs 2022-09-22 04:20:47 +02:00
Aevann1 d55438afad
Live (#364)
* test on devrama

* fix prev commit

* fix prev commit

* try some shit

* try some shit

* try some shit

* fix

* make it easier to change notif colors with custom css

* de

* t

* fgddfg

* fds

* fix

* fds

* dfs

* pain

* sdfsdf

* df

* xcv

* fd

* vxc

* xcv

* c

* fgdfgd

* sdf

* fsd

* fds

* sfd

* fdsf

* fd

* fds

* fds

* fsd

* fds

* fds

* fds

* fds

* fsd

* fds

* df

* fds

* dfs

* fd

* fsd

* fsd

* dfs

* sdf

* fsd

* fsd

* df

* dfs

* fd

* fsd

* dfs

* sdf

* sdf

* sdf

* fsd

* fds

* sfd

* sdf

* fds

* dfs

* df

* sdf

* sdf

* /live
2022-09-22 04:17:02 +02:00
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