Aevann1
a33680dc22
convert more <a> tags to <button> tags
2022-10-29 01:09:06 +02:00
Aevann1
6c32916f1a
convert more <a> tags to <button> tags
2022-10-29 00:51:10 +02:00
Aevann1
b66f9fdb0a
convert 1 a tag to a button, and change native button css
2022-10-29 00:30:28 +02:00
Aevann1
86beaad37c
remove unused shit in profile template
2022-10-29 00:26:06 +02:00
Aevann1
649fc2414d
disable adding admins on WPD
2022-10-29 00:14:59 +02:00
Aevann1
58912b124a
display "@" before account name in failed login attempt
2022-10-28 22:25:35 +02:00
Aevann1
067a83b1b1
remove 2 weird role="button"
2022-10-28 22:19:05 +02:00
Aevann1
f41b09cc07
small change to /admin/app
2022-10-28 22:13:58 +02:00
Aevann1
062e2523b5
change some <a> tags to <button>
2022-10-28 22:08:37 +02:00
justcool393
f5b40ebbbc
leaderboard: qol: link to relevant user pages for posts and comments
2022-10-28 12:36:18 -07:00
justcool393
b9b084ca1e
fix more templating errors
2022-10-28 12:36:18 -07:00
justcool393
efd63b8666
leaderboards: show user as last row if not in lb
2022-10-28 12:36:18 -07:00
justcool393
3aac8f1f24
leaderboard: fix some templating bugs i introduced
2022-10-28 12:36:18 -07:00
justcool393
fb727ac40c
lambda fns
2022-10-28 12:36:18 -07:00
justcool393
cfeafea0d4
leaderboards: annotate the db param, fix posts and comments, and move const to const file, etc
2022-10-28 12:36:18 -07:00
justcool393
d6f1f3c070
fix prev commit redux
2022-10-28 12:36:18 -07:00
justcool393
89e10db2e0
leaderboards: fix prev commit i think
2022-10-28 12:36:18 -07:00
justcool393
8873171f5c
leaderboards: refactor leaderboards to their own class
...
right now, leaderboards are complex enough that they ought to be upgraded to at least a second class thing.
this commit provides an *okay* implementation of a per-request leaderboard
there are many things to be done, including caching, persistence, etc
i don't like this like 80 parameter __init__ but it's what i've got without overengineering it imo
this is potentially already overdoing it
2022-10-28 12:36:18 -07:00
justcool393
0258bfb356
i've done it... i've really done it 🥲
...
i've made the leaderboard code less crap all around
to those who wrote this old code
i forgive you
2022-10-28 12:36:18 -07:00
justcool393
09c3ac2b65
jinja2 doesn't has getattr but we can subscript apparently
...
weird but ok
2022-10-28 12:36:18 -07:00
justcool393
ad58490dd0
call the leaderboard, not LEADERBOARDS and also do it correctly
2022-10-28 12:36:18 -07:00
justcool393
db587a2501
i forgot a bloody comma ok
2022-10-28 12:36:18 -07:00
justcool393
0b61a83270
this leaderboard code is affecting my mental sanity
...
idk maybe this'll fix it it's 1 am who knows anything about coding anymore
2022-10-28 12:36:18 -07:00
justcool393
67768bf44d
fix prev commit
2022-10-28 12:36:18 -07:00
justcool393
b2cfabf244
i don't think the person who worked on either this template or the leaderboard python function has ever thought about the idea of code reuse
...
(make this template smaller by 3/4ths)
2022-10-28 12:36:18 -07:00
justcool393
76855fed36
fix prev commit redux
2022-10-28 12:36:18 -07:00
justcool393
5ec48141bb
fix prev commit
2022-10-28 12:36:18 -07:00
justcool393
ff639ce94b
i wish the person who wrote the initial version of this leaderboard code a very lovely day
...
i definitely don't want to cry myself to sleep because of this god awful mess
it's a little bit better now though
<3
2022-10-28 12:36:18 -07:00
Aevann1
aadd054bc3
remove role="button" from button HTML tags
2022-10-28 21:30:08 +02:00
Aevann1
4a43bc239d
remove formatting buttons (useless bloat)
2022-10-28 21:09:56 +02:00
Aevann1
fc6be1d959
per janny poll, make cosmetic awards 150 DC
2022-10-28 21:04:29 +02:00
Aevann1
449c8b51cb
Revert "add another ratelimit by username"
...
This reverts commit 4385bafa85
.
2022-10-28 20:25:14 +02:00
Aevann1
4385bafa85
add another ratelimit by username
2022-10-28 20:22:51 +02:00
Aevann1
e1dc790165
tighten from 15/day to 10/day
2022-10-28 20:13:37 +02:00
Aevann1
e41ee21f2b
remove redundant ratelimits in /login
2022-10-28 20:13:23 +02:00
Aevann1
b816973f38
ignore subdomains in banned_domains logic
2022-10-28 20:12:40 +02:00
Snakes
1f27b0fb2f
Rate limit failed logins.
2022-10-28 14:07:24 -04:00
Aevann1
6271588056
small cosmetic change
2022-10-28 19:59:56 +02:00
Aevann1
180163e05e
remove bad slur filter
2022-10-28 19:35:37 +02:00
Aevann1
94d1a7d98d
fix
2022-10-28 19:13:24 +02:00
SneedBot
fbab681b43
sneed
2022-10-28 17:09:07 +00:00
Aevann1
8999a6ea29
fix
2022-10-28 19:08:52 +02:00
justcool393
68451513b0
get: use a single function to sanitize usernames
2022-10-27 21:39:57 -05:00
justcool393
ea46bafce2
get: List -> Iterable, we accept lists, sets, etc
2022-10-27 19:30:53 -07:00
justcool393
8a8e6f2233
get: functions to add blocks and vote properties
...
get: don't attempt to re-query if blocks or voted properties are already present
2022-10-27 19:30:53 -07:00
justcool393
16ba59d8b3
get: check stripped out names before querying the db and return None if graceful in other places
2022-10-27 19:30:53 -07:00
justcool393
5ff6fea4dc
get: add type annotations everywhere
2022-10-27 19:30:53 -07:00
justcool393
308e9cbbd6
get: remove weird vestigal load_parent part of get_comment
2022-10-27 19:30:53 -07:00
Aevann1
5d9ddcc0f4
fix quoting on selection
2022-10-28 01:19:44 +02:00
Aevann1
834516cd51
fix prev commit
2022-10-28 00:42:32 +02:00
Aevann1
1a35e2ec6a
refactor banned domains
2022-10-28 00:37:29 +02:00
Snakes
be7be28182
Fix comment search query ampersand bug.
2022-10-27 18:24:12 -04:00
Aevann1
8e2c869c84
fix last commit
2022-10-27 19:56:11 +02:00
Aevann1
ad358650e1
remove retarded bullshit I wasn't consulted about
2022-10-27 19:53:08 +02:00
Aevann1
2937872035
minor grammar change
2022-10-27 17:43:48 +02:00
Aevann1
98bae12134
show the time on which ppl blocked/followed the hole
2022-10-27 17:38:54 +02:00
Aevann1
8e84e3893e
same as last commit
2022-10-27 17:38:39 +02:00
Aevann1
28cf9b66f9
minor grammer change + delete unused template
2022-10-27 17:37:40 +02:00
Aevann1
35ea423f35
cosmetic change
2022-10-27 10:38:11 +02:00
justcool393
c6d3f2a582
antispam: make bypass ids a set
2022-10-26 22:28:21 -05:00
Snakes
d626ae7f6b
Add login required signup blurb for rDrama.
2022-10-26 20:10:21 -04:00
justcool393
50482c9b0e
T to t
2022-10-26 18:41:29 -05:00
justcool393
e4d50be763
stickies: fix logic error i reintroduced that @Aevann1 has earlier fixed
2022-10-26 18:32:30 -05:00
Snakes
6a021c4736
PCM /live: scraping scheduled streams revision.
2022-10-26 17:03:21 -04:00
Snakes
895f0c9714
PCM /live: improve scraping robustness.
2022-10-26 16:14:16 -04:00
justcool393
e6f735b8ca
security: be slightly more generous with login ratelimits
2022-10-26 14:18:21 -05:00
justcool393
782a4494da
login: create invalid file if doesn't exist
2022-10-26 14:11:30 -05:00
justcool393
03cf8038f3
security: log invalid password attempts for admins
...
security: reduce login ratelimits from 1/second ->1/10 seconds
security: reduce login ratelimits from 200/hr -> 100/hr
security: reduce login ratelimits from 1000/day -> 500/day
2022-10-26 13:31:17 -05:00
justcool393
31eb387c8d
pins: remove unnecessary code
2022-10-26 12:23:26 -05:00
Aevann1
8795ecfb58
fix thumbnails
2022-10-26 16:34:33 +02:00
Aevann1
b9d7b4e027
sneed
2022-10-26 16:33:50 +02:00
Snakes
f42d861cae
Add entry to journoid banner.
2022-10-26 01:33:58 -04:00
Snakes
9bfb121d2f
WPD: update sidebar rule #1 .
2022-10-26 00:35:20 -04:00
justcool393
548f2613c7
pinprovements
2022-10-25 17:48:10 -05:00
Aevann1
a25169cbea
remove makeQuote() from reply buttons
2022-10-25 23:16:34 +02:00
Aevann1
e4c7a588ca
add hat preview in /submit/hats
2022-10-25 23:12:52 +02:00
Aevann1
eba9666dd6
add ml-5 mr-5 mx-5
2022-10-25 23:12:37 +02:00
Aevann1
e182ddc738
fix orientation (thx sneks my love)
2022-10-25 22:19:16 +02:00
justcool393
f9343d3db1
full_name -> fullname
2022-10-25 15:05:37 -05:00
Aevann1
033738342a
add tooltip to jigsaw tier [WPD]
2022-10-25 22:03:07 +02:00
Aevann1
16c7c07e7d
stop changing extension
2022-10-25 22:01:38 +02:00
Aevann1
100f546f67
strip metadata
2022-10-25 21:58:02 +02:00
justcool393
56c1b64ec2
via @Aevann1 : add selection quoting feature to mobile
2022-10-25 14:57:43 -05:00
Aevann1
3eb364b143
restore -coalesce
2022-10-25 21:00:09 +02:00
Aevann1
75ee126b61
specify method in imagemagick
2022-10-25 20:48:45 +02:00
Aevann1
0119c2b424
specify quality in imagemagick
2022-10-25 20:45:32 +02:00
Aevann1
883ab31cc9
Describe what Poor Mode does
2022-10-25 20:20:43 +02:00
Aevann1
b92aaa972e
remove 'aev' mentions
2022-10-25 18:20:26 +02:00
Aevann1
fbeac461ca
refactor poorcel mode
2022-10-25 18:07:44 +02:00
justcool393
ac43522570
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-25 11:05:42 -05:00
justcool393
ff81af326e
fix issue where unable to self remove posts
2022-10-25 11:05:34 -05:00
Aevann1
be83829911
trim all marseys that arent alphabet or animated
2022-10-25 18:00:50 +02:00
Aevann1
aa282cf622
remove 2 broken marseys
2022-10-25 17:49:09 +02:00
Aevann1
b9d998bdbe
use imagemagick in all cases
2022-10-25 17:41:23 +02:00
Aevann1
3b16c8f3e3
close image files after ur done
2022-10-25 17:41:23 +02:00
Snakes
eafa7b8e05
Revert "this is stupid": no fighting in the commit log.
...
This reverts commit 1f1ace3d66
.
2022-10-25 11:32:32 -04:00
justcool393
1f1ace3d66
this is stupid
2022-10-25 08:21:37 -07:00
Aevann1
887bb64483
remove forgotten console.log(e)
2022-10-25 15:58:38 +02:00
Aevann1
69648de587
minor change to /remove_post
2022-10-25 15:45:44 +02:00
Aevann1
8e257d2376
fix removing posts
2022-10-25 15:41:49 +02:00