Aevann1
6087aebc78
make previous commit a little neater
2022-08-04 22:57:07 +02:00
Aevann1
84f4fc164d
make chud editting less annoying
2022-08-04 22:54:24 +02:00
Aevann1
1568ec0162
sneed
2022-08-04 22:33:22 +02: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
4723332e07
LGB: disable wordle.
2022-07-23 02:22:45 -04:00
Snakes
8f7d05d62d
Refactor feature flags to dict.
...
In anticipation of adding about a dozen more features flags to support
work for LGB, PIN_ENABLED and PROCOINS_ENABLED have been moved to the
FEATURES dict in const.py. More generally looking to create a unified
interface for logically-related constants, perhaps to support e.g.
later moving these settings from hardcoded constants to data.
2022-07-18 01:10:01 -04:00
Snakes
a217f76bad
Deux: sidebar, sidebar thread; restrict holes.
2022-07-14 02:19:59 -04:00
Aevann1
3554ae8e7c
re-allow notifs on admigger threads
2022-07-13 21:21:13 +02:00
Aevann1
ff4f423c2c
testing on deux
2022-07-13 21:17:17 +02:00
Aevann1
4dc3c2d416
testing on deux
2022-07-13 21:14:59 +02:00
Aevann1
2d21863e19
replace "request.host" with "SITE"
2022-07-13 20:14:37 +02:00
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