Commit Graph

811 Commits (8f1943b50ae96ac06d9a7b62a777ae5248004d98)

Author SHA1 Message Date
Aevann1 aa4ab5b217 sneed 2022-07-13 17:16:53 +02:00
Aevann1 f7c2befeed allow deux jannies to add badges 2022-07-13 14:56:30 +02:00
Aevann1 a8fe49f232 kitchen sink commit, all over the place 2022-07-08 21:03:04 +02:00
Aevann1 c380848d47 remove leftover code from ill-fated joinedload attempt 2022-07-08 20:28:56 +02:00
Aevann1 b9d6f796a3 return 404 on shadowbanned comments when linking to them 2022-07-08 13:13:59 +02:00
Aevann1 747ccf5dab don't count deleted posts and comments 2022-07-08 13:07:27 +02:00
Aevann1 1f0f0ef0be messing with joins 2022-07-03 08:12:53 +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 e8f5827c5e more testing 2022-07-01 15:34:11 +02:00
Aevann1 b602a66dd6 fix issue with text exceeding character count despite not exceeding it 2022-06-29 03:13:11 +02:00
Snakes 08c2ec7223 Make pin disabling site-specific. 2022-06-28 02:27:25 -04:00
Snakes b50151e120 Commit db txn on comment spam 403. 2022-06-27 23:22:38 -04:00
Aevann1 d4d53d57d0 disable pinning comments too 2022-06-28 03:34:17 +02:00
Aevann1 79479d9ffd make it so u dont get pinged by ur own comment on a subscribed thread 2022-06-27 21:13:19 +02:00
Aevann1 a0cb5874cc refactor push notifs 2022-06-27 21:02:24 +02:00
Aevann1 d31d6b8617 restore push notifs 2022-06-27 20:42:41 +02:00
Aevann1 41b7b1298e add logic for 100 marseys badge 2022-06-27 06:42:39 +02:00
Aevann1 f48b16d0ca make it so when u make a comment with polls, you see the polls immediately
(instead of needing to refresh)
2022-06-27 00:32:32 +02:00
Aevann1 58867084af temporarily disable push notifs to get rid of console spam 2022-06-26 23:04:11 +02:00
Aevann1 3b8188fd67 fixed version of d83d47e280 2022-06-26 03:22:05 +02:00
Aevann1 a1b137447e Revert "reduce query volume #1"
This reverts commit d83d47e280.
2022-06-26 03:12:31 +02:00
Aevann1 cff34fb3a4 reducing query volume, #2 2022-06-26 03:11:02 +02:00
Aevann1 d83d47e280 reduce query volume #1 2022-06-26 02:50:47 +02:00
Aevann1 2e8fb4ac07 sneed 2022-06-25 00:27:42 +02:00
Aevann1 f34c4e1196 stop using app.config for our own stuff 2022-06-24 17:08:57 +02:00
Aevann1 9593dc58dd move regex from helpers.const into its own helper file 2022-06-24 16:30:59 +02:00
Aevann1 6f6d01c1c6 actually use the get functions 2022-06-24 15:19:53 +02:00
Aevann1 f6bb11bdc2 make so it post subscription only give notifs to top-level comments 2022-06-22 20:05:56 +02:00
Aevann1 414eb12410 add poll_thread 2022-06-22 20:01:00 +02:00
Snakes e212eb567d Exclude comments on drafts from edit limit.
Draft posts have already been excluded from the edit time limit for
obvious reasons--drafts are intended to be edited, and people use them
as personal megathreads on their profiles. Largely for the latter
use case, this commit also excludes comments on drafts from the limit.
2022-06-20 07:39:45 -04:00
Aevann1 14ffb39ba6 increase edit_comment ratelimit 2022-06-19 19:16:18 +02:00
Aevann1 d9cdbd0015 return to only allowing images/videos/audio 2022-06-19 18:56:45 +02:00
Aevann1 668cfdc90a made it not possible to edit posts/comments older than a week 2022-06-18 22:53:10 +02:00
Aevann1 eba4452d79 fix 500 error 2022-06-18 22:41:00 +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 56f8cf793e give visible bots a body column (so their comments are searchable)
+ don't sanitize zoz/longpostbot/aj comments
2022-06-18 17:37:01 +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 28fa03669d use f-string 2022-06-18 00:14:27 +02:00
Snakes 7e54f858d3 Amend f8ae2a3d17c6: revert >= logic, fail loudly.
First, the apparent errors with >= 9 and 99 in the Marseys and
referrals code after the refactor are not actually bugs: they were
bug fixes mixed in with the refactor to fix an off-by-one.

Next, instead of failing silently on the `not user` branch in
badge_grant, we throw a ValueError. This retains the current
behavior where users get 500s to report while also enforcing the
assertion near the edge of the function.
2022-06-15 16:32:25 -04:00
Snakes f8ae2a3d17 Amend 3bc98f0a6b84: minor logic, style. 2022-06-15 16:08:26 -04:00
Aevann1 3bc98f0a6b extend TLSM's badge_grant() to almost all instanes where badges are granted 2022-06-15 21:33:21 +02:00
Aevann1 07f2c0d2ca make marsey counter work everywhere (not just comments) 2022-06-13 20:05:24 +02:00
Snakes acde2c856b Enable JL2 viewing shadowbanned comments. 2022-06-12 05:48:27 -04:00
Aevann1 b94fabddb4 rDrama -> SITE_NAME 2022-06-11 16:39:00 +02:00
Aevann1 f9a0cff350 make the page always jump to the comment you wanna view 2022-06-10 20:01:12 +02:00
Aevann1 63c16a867a make the ratelimit for editing much lower to cut
down on mass overwriting
2022-06-09 18:10:25 +02:00
Aevann1 e5dbc9bfdd made it so ALL comments on ghosted posts are ghosted too, this includes the hidden poll comments
that way, the poll voters will be hidden and we can have anonymous polls

context: https://rdrama.net/votes?link=t3_2007526
2022-05-30 05:26:52 +02:00
Aevann1 cd2380fb33 fds 2022-05-28 04:20:31 +02:00
Aevann1 4e5f7935dd dfs 2022-05-28 02:30:07 +02:00
Aevann1 66b3efab36 award refactor 2022-05-27 01:08:23 +02:00
Aevann1 0bd15d3914 burgers? 2022-05-23 21:00:14 +02:00
Snakes 62c85cd314 Fix admiggers assets CF purge requests. 2022-05-23 01:04:59 -04:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Aevann1 969d1898b5 vid refactor 2022-05-22 18:13:19 +02:00
Aevann1 0af46237f6 stripper 2022-05-22 12:26:59 +02:00
Aevann1 53dd9056b8 fsd 2022-05-22 12:23:02 +02:00
Aevann1 a83a72ca95 fsd 2022-05-20 16:51:14 +02:00
Aevann1 f4ac063354 sfd 2022-05-20 16:48:13 +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 7278e65362 fds 2022-05-14 16:12:51 +02:00
Aevann1 b71ae6cc74 sf 2022-05-09 13:21:49 +02:00
Aevann1 7ddd5ec76a sfd 2022-05-09 11:32:55 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
Aevann1 666870e0a3 fsd 2022-05-08 07:14:24 +02:00
TLSM 6656edeefc Refactor admig logic, fix banners path. (#250)
Made the logic of the recent admig upload thread fixes (arguably)
more Pythonic, or at least less verbose.

Also, the banners path was replaced with a duplicate of the sidebars
path during the copypasta. This has been remedied.
2022-05-08 07:01:49 +02:00
Aevann1 af6d359496 fgd 2022-05-08 06:21:05 +02:00
Aevann1 dd94e3ea84 fds 2022-05-08 06:18:27 +02:00
Aevann1 eafc895724 fsd 2022-05-08 06:17:50 +02:00
Aevann1 9541e3db47 sfd 2022-05-08 06:10:33 +02:00
Aevann1 206a4c81a2 sfd 2022-05-08 06:07:12 +02:00
Aevann1 1431522173 gf 2022-05-07 10:20:22 +02:00
Aevann1 028563ad7d bgd 2022-05-07 08:04:14 +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 47d01ed00b vb 2022-05-03 04:15:35 +02:00
Aevann1 65b3a5d375 fsd 2022-05-03 03:39:20 +02:00
Aevann1 96ea758ed9 sfd 2022-05-03 03:37:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
outruncolors 0ff7bdc28a Added doubledown and insurance functionality (#235)
* Added doubledown functionality

* Add insurance
2022-05-01 20:24:01 +02:00
Aevann1 d961ffc913 fds 2022-04-28 02:04:01 +02:00
Aevann1 5a49be1d47 fsd 2022-04-26 15:40:37 +02:00
Aevann1 ab83d60730 fds 2022-04-26 15:01:05 +02:00
Aevann1 0f05bf3f94 fsd 2022-04-26 00:28:20 +02:00
Aevann1 e60fe0bcd6 gf 2022-04-25 16:51:40 +02:00
Aevann1 0cbd70a8d6 fad 2022-04-24 22:39:37 +02:00
Aevann1 457a717075 fds 2022-04-24 00:09:25 +02:00
Aevann1 8dde3965aa fds 2022-04-24 00:06:45 +02:00
Aevann1 d026174472 fds 2022-04-23 00:48:01 +02:00
Aevann1 bc762ff06c fsd 2022-04-22 17:05:34 +02:00
Aevann1 ac4da7516d fsdfds 2022-04-22 15:23:56 +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 0e74b54424 fsd 2022-04-18 20:25:14 +02:00
Aevann1 521eb16db7 fds 2022-04-18 19:51:39 +02:00
Aevann1 99cb01d9fc fdsfds 2022-04-15 18:28:08 +02:00
Aevann1 75be2dea76 fds 2022-04-15 17:35:56 +02:00
Aevann1 a1d7849798 fds 2022-04-15 17:35:11 +02:00
Aevann1 15a02cf3cd fds 2022-04-10 01:07:03 +02:00
Aevann1 ee7d2a6afa fds 2022-04-07 03:20:52 +02:00
Aevann1 a607febc10 sfd 2022-04-05 15:32:27 +02:00
Aevann1 f833729224 fds 2022-04-05 15:31:40 +02:00
Aevann1 8ad6fd509f gd 2022-04-04 22:53:37 +02:00
Aevann1 83749285c5 less go 2022-04-04 03:41:15 +02:00
Aevann1 7a8108e106 fsd 2022-04-03 22:16:54 +02:00
Aevann1 6647457a4b dg 2022-04-03 17:53:20 +02:00
Aevann1 b4c5159325 sfd 2022-04-03 14:57:46 +02:00
Aevann1 c9b3e8528d fsd 2022-04-02 21:42:21 +02:00
Aevann1 eb744ce194 fsd 2022-04-02 19:11:32 +02:00
Aevann1 ae82ada424 fsd 2022-04-02 18:54:27 +02:00
Aevann1 b538d2a24c gdfg 2022-03-31 18:28:53 +02:00
Aevann1 79952c87f4 fds 2022-03-31 17:49:12 +02:00
Aevann1 db53c1f666 fsd 2022-03-31 17:14:19 +02:00
Aevann1 b74c8711d7 fd 2022-03-26 00:30:15 +02:00
Aevann1 eec1738d01 what a mess 2022-03-24 21:44:12 +02:00
Aevann1 b31ffc6de6 far 2022-03-23 18:01:10 +02:00
Aevann1 f65ff6a353 fsd 2022-03-22 17:45:52 +02:00
Aevann1 2c9dca2e8e fds 2022-03-22 05:45:32 +02:00
Aevann1 eae5a7b2af fsd 2022-03-21 23:53:42 +02:00
Aevann1 a8283f12ba c 2022-03-19 20:39:32 +02:00
Aevann1 e3a8d03549 cmon 2022-03-19 16:59:56 +02:00
Aevann1 0c5435e04f sfd 2022-03-18 20:31:24 +02:00
Aevann1 91f8c66306 dsa 2022-03-17 19:45:09 +02:00
Aevann1 329f34a6e6 pizza 2022-03-17 18:12:59 +02:00
Aevann1 7f9ab967a4 dsf 2022-03-17 12:32:22 +02:00
Aevann1 95e338eb07 snap 2022-03-09 04:54:39 +02:00
Aevann1 b35bab0672 hole 2022-03-09 04:04:37 +02:00
Aevann1 514d6ec126 right 2022-03-09 03:44:53 +02:00
Aevann1 acd3843632 fixed king 2022-03-06 21:03:50 +02:00
Aevann1 b70ea883e8 made wordle and blackjack ajax 2022-03-06 05:25:23 +02:00
Aevann1 fae009165c automating marsey badges 2022-03-05 00:59:33 +02:00
Aevann1 02462f5833 testicles 2022-03-04 22:42:28 +02:00
Aevann1 b7ab468ae0 jesus christ im an idiot 2022-03-03 22:22:23 +02:00
Aevann1 b6ad0da4b9 carp 2022-03-02 02:05:30 +02:00
Aevann1 412495e2f9 gf 2022-03-01 03:40:43 +02:00
Aevann1 94f2a69167 N 2022-03-01 01:30:44 +02:00
Aevann1 1576fcd57d farts on u 2022-02-28 04:06:15 +02:00
Aevann1 b6c341eba6 h 2022-02-28 01:58:46 +02:00
Aevann1 00aebcbafc regex2 2022-02-28 00:05:51 +02:00
Aevann1 ddbb610142 regex 2022-02-27 23:57:44 +02:00
Aevann1 e0dfe332c2 cope 2022-02-26 20:53:17 +02:00
Aevann1 0be18d93df marregex 2022-02-26 12:21:25 +02:00
Aevann1 18fb196922 permenantly 2022-02-25 19:25:31 +02:00
Aevann1 db61d95e1c emoji 2022-02-25 14:43:25 +02:00
Aevann1 9444422247 multi file upload 2022-02-24 21:05:04 +02:00
Aevann1 d38f5e3c63 e 2022-02-24 20:31:28 +02:00
Aevann1 4de753e056 vc 2022-02-24 19:52:44 +02:00
Aevann1 40a797ccb7 bb 2022-02-24 19:51:25 +02:00
Aevann1 3636b9d69b bbb 2022-02-24 19:48:14 +02:00
Aevann1 d5216dd65b vc 2022-02-24 18:48:24 +02:00
Aevann1 4f7d207260 fds 2022-02-24 15:20:48 +02:00
Aevann1 f79d83b4da sfd 2022-02-24 11:27:42 +02:00
Aevann1 9590e73b5d farin 2022-02-24 11:24:22 +02:00
Aevann1 14c7148eed fd 2022-02-24 10:28:13 +02:00
Aevann1 57f989dfe7 fg 2022-02-24 05:46:09 +02:00
Aevann1 f7ad6fcbcc sfd 2022-02-23 07:38:56 +02:00
Aevann1 54975c6849 fds 2022-02-22 16:11:33 +02:00
Aevann1 f56d9b893b vc 2022-02-22 15:34:41 +02:00
Aevann1 9bfcbce7f7 xcv 2022-02-22 14:40:43 +02:00
Aevann1 42c9bb87fd df 2022-02-22 14:39:02 +02:00
Aevann1 1472760b6b fgd 2022-02-21 08:15:33 +02:00
Aevann1 fb8ec7a343 fg 2022-02-21 07:55:37 +02:00
Aevann1 bf31533fcb cvb 2022-02-21 06:04:29 +02:00
Aevann1 2b69077960 vc 2022-02-21 04:35:02 +02:00
Aevann1 c9081a5285 xvc 2022-02-18 23:21:51 +02:00
Aevann1 19d2215ae3 b 2022-02-18 12:13:57 +02:00
Aevann1 2ac0ae76a5 vbn 2022-02-18 11:39:12 +02:00
Aevann1 a535c7d2df v 2022-02-18 10:01:21 +02:00
Aevann1 09529a1341 cv 2022-02-17 08:44:29 +02:00
Aevann1 431a3db3e8 fsd 2022-02-17 02:59:28 +02:00
Aevann1 517fedf558 v 2022-02-16 06:58:10 +02:00
Aevann1 9f2ed94929 cv 2022-02-16 06:54:30 +02:00
Aevann1 fb9c0a23dc exiles 2022-02-16 06:33:13 +02:00
Aevann1 9c4dcb1144 gf 2022-02-16 03:42:11 +02:00
Aevann1 a706b3105c fd 2022-02-16 01:38:33 +02:00
Aevann1 b752a2ddad gf 2022-02-16 01:02:48 +02:00
Aevann1 6411fe5829 sdf 2022-02-15 00:50:27 +02:00
Aevann1 2a70630d82 df 2022-02-14 22:34:23 +02:00
Aevann1 1e316595b3 fd 2022-02-14 22:29:36 +02:00
Aevann1 315dcef46a hfg 2022-02-14 21:02:05 +02:00
Aevann1 9a887863bd fg 2022-02-14 04:33:27 +02:00
BuckFromRdrama e9f03cc8b9 Wordle game (#206)
* Wordle

* added words

* removed print

* fixed invisible guess bug; made input look better

* sneed

Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-02-13 17:39:48 -08:00
Aevann1 8db4b363f8 nb 2022-02-14 00:35:55 +02:00
Aevann1 de4e019abc sfd 2022-02-13 23:25:09 +02:00
Aevann1 170177b64d bv 2022-02-13 03:42:48 +02:00
Aevann1 bf3e14bba3 big big chungus big chungus big chungus 2022-02-13 03:08:12 +02:00
Aevann1 97febe0080 big chungus commit 2022-02-12 01:32:14 +02:00
Aevann1 8d77d0e982 gdf 2022-02-11 20:44:12 +02:00
Aevann1 db7ceaf312 cvb 2022-02-08 15:26:38 +02:00
Aevann1 dedfd6a370 fd 2022-02-08 15:19:28 +02:00
Aevann1 bcb66c6f72 vb 2022-02-07 17:07:46 +02:00
Aevann1 ec74892284 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-02-07 13:39:29 +02:00
Aevann1 820d8387f9 xv 2022-02-07 13:39:26 +02:00
outruncolors b967b43ea5 Blackjackmb (#201)
* Filter out slots from the body. (#181)

* Slots changes (#182)

* Switch slots result to title and fix snappy

* These two guys again

* These two guys again

* Fix breaking-even

* ...??

* Initial commit

* Finalize initial blackjack attempt

* Fix blackjack reward text

* Merge up

* Abstract command checking functionality to handle multiples'
2022-02-07 01:29:56 -08:00
Aevann1 022e300d2f SDF 2022-02-06 12:54:05 +02:00
Aevann1 5098d30b57 sdf 2022-02-06 01:24:54 +02:00
Aevann1 1eeebf9400 crisis 2022-02-05 23:09:17 +02:00
Aevann1 d301d733c5 fsd 2022-02-04 20:35:39 +02:00