Aevann1
3aa6a838cb
fixed markdown preview rendering emojis that arent actually emojis
2022-06-27 06:01:43 +02:00
Aevann1
7050932fe0
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-27 05:46:36 +02:00
Aevann1
52a8a219ae
make poorcel-mode device-specific
2022-06-27 05:46:32 +02:00
Snakes
6c97faeb55
WPD: sidebar flairs list update.
2022-06-26 23:37:52 -04:00
Aevann1
234cbe47ee
make it possible to sort downvotes too
2022-06-27 04:50:13 +02:00
Aevann1
26d46a9cb9
make sorting tables less retarded
2022-06-27 04:47:49 +02:00
Aevann1
44c588fce3
make text in settings less small
2022-06-27 04:35:40 +02:00
Aevann1
38358cafe4
make publishing a draft reload the page instead of going to the post
2022-06-27 04:34:15 +02:00
Aevann1
03a9a5752b
Revert "trying to fix weird banner behavior"
...
This reverts commit 8d0a674f4e
.
2022-06-27 04:33:59 +02:00
Aevann1
6bd4efa61f
Revert "make small text less small"
...
This reverts commit 42b0f37034
.
2022-06-27 04:33:38 +02:00
Aevann1
8d0a674f4e
trying to fix weird banner behavior
2022-06-27 04:24:56 +02:00
Aevann1
46c9c719d0
fixed 500 error
2022-06-27 04:22:12 +02:00
Aevann1
6ff420e338
add a public list of poorcels
2022-06-27 04:21:34 +02:00
Aevann1
42b0f37034
make small text less small
2022-06-27 04:18:14 +02:00
Aevann1
b1ef8e4c62
add poorcel mode
2022-06-27 04:14:53 +02:00
Aevann1
b5d993569f
embed rework
2022-06-27 03:00:45 +02:00
Aevann1
785cea9c4c
fix 500 eror on signup
2022-06-27 02:49:30 +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
b124afb60f
make CTRL+ENTER possible with gifting
2022-06-27 00:27:41 +02:00
Aevann1
baa105958e
dirty hack to make stacked emojis work in markdown preview
2022-06-27 00:17:39 +02:00
Aevann1
667355b952
don't highlight voted comments as "unread"
2022-06-26 23:57:02 +02:00
Aevann1
8e73d7aaad
remove checking for device RAM
2022-06-26 23:48:39 +02:00
Aevann1
8b8f99695b
make ppl with 200 coins able to bet
2022-06-26 23:40:02 +02:00
Aevann1
52e0f21c75
make /h/braincels jannies unable to exile ppl
2022-06-26 23:34:09 +02:00
Aevann1
58867084af
temporarily disable push notifs to get rid of console spam
2022-06-26 23:04:11 +02:00
Aevann1
e7ce39bd80
fix poll-voting
2022-06-26 22:53:12 +02:00
Snakes
8185340e15
WPD: rearrange & style sidebar flairs.
2022-06-26 06:39:53 -04:00
Snakes
fe5d339386
WPD: Update sidebar flairs.
2022-06-26 05:15:12 -04:00
Snakes
0311160c1a
WPD: update flair sidebar pre-launch.
2022-06-26 03:42:57 -04:00
Snakes
e0c3c79902
WPD: Require flairs on all posts.
2022-06-26 03:42:56 -04:00
Snakes
7b92db114a
WPD: preliminary sidebar flair list.
2022-06-26 03:42:32 -04:00
Snakes
268c23e2f8
WPD: make holes more flair-like in UI.
2022-06-26 03:42:15 -04:00
Snakes
cd556b6d8e
Refactor UI name of hole/sub to constant.
2022-06-26 03:41:28 -04:00
Snakes
13ceb8818d
Commit txn in /notifications (by @Aevann1 ).
2022-06-26 03:01:01 -04:00
Aevann1
c715185e85
temp fix for bullshit
2022-06-26 08:35:41 +02:00
Aevann1
49032231d3
sort the functions after request by chronological order
2022-06-26 08:33:08 +02:00
Aevann1
39ee9e5ff1
fix voting
2022-06-26 08:31:53 +02:00
Aevann1
b450d5bb8c
fix sorting by bottom for comments
2022-06-26 08:16:05 +02:00
Aevann1
81243b48dd
fix sorting by top/bottom for posts
2022-06-26 08:15:06 +02:00
Aevann1
5e745e38d3
revert the saving and subscription shit
2022-06-26 08:11:38 +02:00
Aevann1
5aad7e09a6
dont query polls on frontpage
2022-06-26 08:10:02 +02:00
Aevann1
4d7e7b629b
fix 0ef33b396a
2022-06-26 07:51:02 +02:00
Aevann1
afdc9605ca
make checking if a comment is saved less retarded
2022-06-26 07:48:39 +02:00
Aevann1
0ef33b396a
make checking if a post is subscribed to less retarded
2022-06-26 07:45:49 +02:00
Aevann1
2a8b7bf281
undefer css (1 less query)
2022-06-26 07:39:46 +02:00
Aevann1
1367d944da
commit only when status code is 200
2022-06-26 07:37:36 +02:00
Aevann1
e022b29ef6
rework custom css a little
2022-06-26 07:26:45 +02:00
Aevann1
e36adb5bf4
reduce query volume, badge edition
2022-06-26 07:11:25 +02:00
Aevann1
74978bfbf7
Revert "put custom CSS into HTML templates"
...
This reverts commit 19c82b7ea1
.
2022-06-26 07:07:28 +02:00
Aevann1
49e39b94bc
fix signups
2022-06-26 07:03:30 +02:00
Aevann1
ecc22cfc06
fix 2b1e7f6570
2022-06-26 06:57:31 +02:00
Aevann1
2b1e7f6570
make checking if a post/comment is saved less retarded
2022-06-26 06:54:41 +02:00
Aevann1
19c82b7ea1
put custom CSS into HTML templates
2022-06-26 06:33:41 +02:00
Aevann1
e34cbeca31
fix 3b8188fd67
2022-06-26 03:25:17 +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
cd4b3b7d3b
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-26 02:50:49 +02:00
Aevann1
d83d47e280
reduce query volume #1
2022-06-26 02:50:47 +02:00
Snakes
7b38be0101
Reduce query volume in user.user_awards.
...
The User model class method user_awards previously made one query
per type of award. This has been replaced with a new query that
retrieves all owned award quantities at once using GROUP BY.
2022-06-25 20:22:56 -04:00
Aevann1
f184351d5d
make glowie marsey not clip
2022-06-25 22:48:41 +02:00
Aevann1
bc7185b5af
order awards by the time they were awarded
2022-06-25 22:33:51 +02:00
Aevann1
c1d227e2b6
exclude poll bots from "simps for" lists
2022-06-25 22:24:47 +02:00
Aevann1
af680d8a94
make it whenever a post has "thread" (instead of "megathread") in the title, the comments are ordered by new
2022-06-25 21:55:29 +02:00
Aevann1
7a402d2449
order pins by new
2022-06-25 21:54:18 +02:00
Aevann1
905e32c60c
remove the javascript block i used for testing
2022-06-25 19:29:34 +02:00
Aevann1
2b86a8fee0
minor tweak to modal behavior
2022-06-25 19:14:57 +02:00
Aevann1
c53b8dae81
add ability to sort votes table by truescoer
2022-06-25 17:44:02 +02:00
Aevann1
f415b469de
Revert "Exclude self-votes from user vote summaries totals."
...
This reverts commit 69482aed3a
.
2022-06-25 17:41:36 +02:00
Aevann1
5d777a07b0
cache bust
2022-06-25 17:36:35 +02:00
Aevann1
1abcbecf19
fix RAM shit
2022-06-25 17:33:46 +02:00
Aevann1
be0c473171
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-25 17:20:37 +02:00
Aevann1
66586dfce3
testing RAM thing
2022-06-25 17:20:34 +02:00
Snakes
69482aed3a
Exclude self-votes from user vote summaries totals.
...
The user routes upvoters, downvoters, upvoting, and downvoting
now exclude self-votes from the summary totals.
Also, the diff touches a number of other lines where the local
variable `id` was renamed to `uid` for semantic clarity.
2022-06-25 02:00:09 -04:00
Snakes
aaf718c78c
Fix timeout in sanitize from link_fix_regex.
...
h/t to @official-techsupport for finding and help fixing this bug.
When given certain pathological input, `sanitize` would time out
(notably only on posts, rather than comments, perhaps due to the
longer maximum length of input). For example, using as input the
result of:
with open("test.txt", "w") as f:
for i in range(26):
f.write(f":{chr(ord('a') + i)}: ")
f.write('x' * 20_000)
We believe this to be because of some combination of the greedy
quantifiers and the negative lookahead before the match. The regex
was rewritten to (in theory) have much more linear performance.
2022-06-25 01:28:43 -04:00
Aevann1
70c2b2cffa
try fixing RAM thing
2022-06-25 05:19:28 +02:00
Aevann1
e4c50939e6
Revert "make threshold for RAM 3GB instead of 2.99GB"
...
This reverts commit 37b8fc5666
.
2022-06-25 05:06:25 +02:00
Aevann1
37b8fc5666
make threshold for RAM 3GB instead of 2.99GB
2022-06-25 05:01:19 +02:00
Aevann1
a990e6cf6e
small adjustment to emoji search
2022-06-25 04:44:06 +02:00
Aevann1
6dc824b29e
make emoji search work on "enter" only for 3GB RAM and lower
2022-06-25 04:22:04 +02:00
Aevann1
59302696f6
remove 150 truescore requirement on discord
2022-06-25 04:00:49 +02:00
Aevann1
56a317bb56
"Bux" to "Marseybux"
2022-06-25 03:54:23 +02:00
Aevann1
51c91de1dd
fix bug with confirmation dialog
2022-06-25 02:25:08 +02:00
Aevann1
6dcf3fde2d
reduce viewmore threshold to 100 again
2022-06-25 02:18:06 +02:00
Aevann1
149db9ebe3
cachebust marked.js
2022-06-25 02:17:16 +02:00
Aevann1
ffd0d9ed31
show duration on ban icon tooltip
2022-06-25 02:11:00 +02:00
Aevann1
d59a80245d
add total counter for simps, haters, simping for, hates
2022-06-25 01:22:20 +02:00
Aevann1
55ebd98f40
add confirmation dialog when u close tab while text is in commentbox/messagebox
2022-06-25 00:58:15 +02:00
Aevann1
2e8fb4ac07
sneed
2022-06-25 00:27:42 +02:00
Aevann1
5ce276854d
remove the 1wk edit limit for posts, but keep it for comments
2022-06-25 00:21:37 +02:00
Aevann1
ab1f6fac65
fix 500 error
2022-06-24 22:54:45 +02:00
Aevann1
25a95dfb3e
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-24 22:52:43 +02:00
Aevann1
cbdf3f0a18
fix snappy
2022-06-24 22:52:38 +02:00
Snakes
47159f338d
Fix exception when serializing comments JSON.
...
The JSON API endpoints that return comments, most notably `/comments`
returned 500s and created a stack trace with:
TypeError: Object of type method is not JSON serializable
Further debugging revealed this was because json.encoder was being
given a <bound method lazy.<locals>.wrapper of <Comment(id=123)>> to
serialize.
The introduction of the bug was traced to 8ecb4582d0
where it was
discovered that the (seemingly inadvertent) removal of the @property
decorator on classes/comment.py:parent_fullname was the root cause.
In light of the fact that parent_fullname was unrelated to the changes
intended in 8ecb4582d0
and that no other refactoring around
parent_fullname was done, it was restored to being a @property rather
than its callers modified to invoke it as a method.
2022-06-24 15:26:18 -04:00
Aevann1
a2a9c2666d
make sure snappy's comment body doesnt get above 10k characters
2022-06-24 20:10:28 +02:00
Aevann1
6b1560a9d2
add hunter biden's fart
2022-06-24 19:56:28 +02:00
Aevann1
43751dc4ec
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-24 19:32:34 +02:00
Aevann1
c5c21da76f
validate colors
2022-06-24 19:32:31 +02:00
Snakes
e896a965ad
Fix crab award media path.
2022-06-24 13:22:23 -04:00
Aevann1
a64dd729e8
escape asterick when quoting
2022-06-24 18:25:21 +02:00
Aevann1
743ac90f08
fix 500 error
2022-06-24 18:15:37 +02:00
Aevann1
13143a72ab
disable animations for ppl with lower than 3GB RAM
2022-06-24 18:12:58 +02:00
Aevann1
17c81ea9ef
reduce margin above "toggle preview"
2022-06-24 17:40:05 +02:00
Aevann1
41cebb7f80
fix accidential greentext in chat
2022-06-24 17:37:31 +02:00
Aevann1
de8981b5e5
fixing 500 errors
2022-06-24 17:35:55 +02:00
Aevann1
f34c4e1196
stop using app.config for our own stuff
2022-06-24 17:08:57 +02:00
Aevann1
fcf600cb35
fix this https://chapotraphouse.club/post/79771/workaholics-are-worse-for-society-than/2183396?context=8#context
2022-06-24 16:45:19 +02:00
Aevann1
9593dc58dd
move regex from helpers.const into its own helper file
2022-06-24 16:30:59 +02:00
Aevann1
68dc17ca4e
fix ea37966aff
2022-06-24 16:18:48 +02:00
Aevann1
ea37966aff
disable all cosmetic awards on devices with less than 3GB ram
2022-06-24 16:17:45 +02:00
Aevann1
1d29aaa00f
make the disable function do 2 seconds instead of 1 second
2022-06-24 16:12:04 +02:00
Aevann1
6a6f52f4ee
increase "view more" threshold
2022-06-24 16:11:00 +02:00
Aevann1
f7c3cfbf5b
fix 66eb63dcee
2022-06-24 16:10:05 +02:00
Aevann1
5d98f1095d
actually use the get functions, v2
2022-06-24 15:21:05 +02:00
Aevann1
6f6d01c1c6
actually use the get functions
2022-06-24 15:19:53 +02:00
Aevann1
66eb63dcee
reload pages on back button for me
2022-06-24 15:07:12 +02:00
Aevann1
53fe1ffc60
fix modal behavior
2022-06-24 07:22:04 +02:00
Aevann1
69d247c433
revert autoupvoting posts
2022-06-24 07:12:17 +02:00
Aevann1
4e067579d5
fix disable() function not working
2022-06-24 05:00:35 +02:00
Aevann1
895f08e34e
put disable() in a more general js file
2022-06-24 04:56:14 +02:00
Aevann1
ef3843f628
add timer to re-enable form buttons after 1 second
2022-06-24 04:53:31 +02:00
Aevann1
4d90b626d4
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-24 04:48:09 +02:00
Aevann1
ff49bf52ac
better modal behavior
2022-06-24 04:48:07 +02:00
Snakes
ce79b1d84b
PCM: lottery duration back to 1wk.
2022-06-23 22:40:51 -04:00
Aevann1
222367cea8
fix 500 errors
2022-06-24 03:28:34 +02:00
Aevann1
9dbe67bf90
respect user's chosen themecolor
2022-06-24 03:27:49 +02:00
Aevann1
96e14111e3
do this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2021584?context=8#context
2022-06-24 03:25:12 +02:00
Aevann1
a1a28a172d
don't create a modal instance if one exists
2022-06-24 03:06:13 +02:00
Aevann1
6eabd99067
hide modals on back button (instead of going back 1 page)
2022-06-24 03:05:49 +02:00
Aevann1
b3980660c1
fix leaderboard bug for badges
2022-06-24 02:29:13 +02:00
Aevann1
4c6bc3cdfd
make emoji_modal neater on mobile
2022-06-24 01:57:02 +02:00
Aevann1
e909f4e6fc
forgot to cache-bust header.js
2022-06-24 01:11:00 +02:00
Aevann1
4fc8520e24
remove post_toast2() and post_toast3() and incorporate them into post_toast()
2022-06-24 01:07:47 +02:00
Aevann1
b17333b2a0
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2046517?context=8#context
2022-06-24 00:46:07 +02:00
Aevann1
6463cbd1f4
"kike" slur filter modification
2022-06-24 00:33:39 +02:00
Aevann1
6803d83af4
fix wrong template being shown on error when changing colors
2022-06-24 00:22:41 +02:00
Aevann1
39a5971db7
add minlength to hexcodes in settings
2022-06-24 00:19:54 +02:00
Aevann1
b965666c2d
fix catalog view not working while logged-out
2022-06-23 23:46:31 +02:00
Aevann1
80db653d3f
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2130416?context=8#context
2022-06-23 23:25:07 +02:00
Aevann1
8d839b3e06
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2131562?context=8#context
2022-06-23 23:04:16 +02:00
Aevann1
2d306bbba7
pause videos on comment collapse
2022-06-23 23:01:20 +02:00
Aevann1
4d692bebe8
make all form-submitting buttons get disabled after clicking
...
so spergs like me with poor motor control don't click twice and get hit with 429
2022-06-23 22:49:23 +02:00
Aevann1
38a5bf25c5
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2133621?context=8#context
2022-06-23 22:14:41 +02:00
Aevann1
a3b4707b89
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2135530?context=8#context
2022-06-23 22:08:22 +02:00
Aevann1
4723640b89
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2175391?context=8#context
2022-06-23 22:02:40 +02:00
Aevann1
cff28b2070
add i.reddit.com to reddit_domain_regex
2022-06-23 22:00:49 +02:00
Aevann1
43836652e0
double viewmore threshold on old threads
2022-06-23 21:47:00 +02:00
Aevann1
2c1d1aceff
fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2178607?context=8#context
2022-06-23 21:43:49 +02:00
Aevann1
810e80c010
fix issue with snappy url archival
2022-06-23 21:41:23 +02:00
Aevann1
6029e5b4fc
try fixing golden marseys
2022-06-23 18:48:44 +02:00
Aevann1
ec9cdf1f23
try fixing golden marseys
2022-06-23 18:45:41 +02:00
Aevann1
ceb72a470c
add more @lazy to functions
2022-06-23 18:36:39 +02:00
Aevann1
39cf7fc48b
refactor normalizing urls at runtime (I put the function in comment.py cuz there were weird import errors that i didnt wanna fix)
2022-06-23 17:47:57 +02:00
Snakes
31d2ade68c
Fix emoji modal DMing private profile.
2022-06-23 03:30:34 -04:00
Snakes
532b248847
Extend 'hole' search operator to comments.
2022-06-23 02:11:03 -04:00
Snakes
3d2e7e415a
Focus emoji search input on modal open.
2022-06-23 01:53:29 -04:00
Aevann1
8045cfc118
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-23 03:41:01 +02:00
Aevann1
92e72b330b
switch "browse holes" and "create hole"
2022-06-23 03:40:59 +02:00
gooseman
6fec7d51d9
make me notified ( #308 )
2022-06-22 21:37:27 -04:00
Aevann1
0c5ddeb1f7
make me autovote on all posts in subs
2022-06-23 03:03:28 +02:00
Aevann1
78b31df5c2
disallow ppl from faking golden and glowing marseys
2022-06-23 02:50:02 +02:00
Aevann1
9aa5443ad0
improve glowie marseys
2022-06-23 02:45:51 +02:00
Aevann1
c5dffd3368
double viewmore threshold
2022-06-23 02:37:03 +02:00
Aevann1
e42227ab67
add glowie marseys
2022-06-23 02:34:37 +02:00
Aevann1
233f24c0c4
make reddit notifs look neater (again)
2022-06-23 01:45:09 +02:00
Aevann1
262138b542
make reddit notifications look neater
2022-06-23 01:16:59 +02:00
Aevann1
7e6e04b231
sneed
2022-06-23 01:13:21 +02:00
Aevann1
175b63c02c
double "view more" button threshold
2022-06-23 00:51:41 +02:00
Aevann1
8f2c2885d2
include psot body in reddit mentions too
2022-06-23 00:40:53 +02:00
Aevann1
a50544d86a
fixing "more comments" button appearing when there's no more comments
2022-06-23 00:25:10 +02:00
Aevann1
0e1177843e
remove the need for alert flag on sanitize()
2022-06-23 00:12:47 +02:00
Snakes
26273d0997
Revert "delete empty <a> tags to prevent exploits"
...
This reverts commit 5f78b4e365
.
This commit is breaking @-mentions in a great many contexts and
I'm not quite sure how to fix it right now.
2022-06-22 18:00:23 -04:00
Snakes
36d24cf213
Refactor hole follow notifs to encapsulate.
...
Fixes bug where admins moving a post into a hole doesn't notify
followers of the destination hole.
Also, we now have a route endpoint for reholing that is potentially
usable for e.g. an actual post_actions button to rehole, rather than
the report command UI at present.
2022-06-22 17:21:12 -04:00
Aevann1
5f78b4e365
delete empty <a> tags to prevent exploits
2022-06-22 23:12:02 +02:00
Aevann1
b8321fd18d
fix removing and approving comments on desktop
2022-06-22 23:06:06 +02:00
Aevann1
fe2ad1ae87
show poll options in markdown preview when editing
2022-06-22 23:02:37 +02:00
Aevann1
365d21ff9c
fix this https://i.imgur.com/F0OiGKH.png
2022-06-22 23:00:09 +02:00
Aevann1
cbc2a07818
make "browse holes" button visible inside holes
2022-06-22 22:52:19 +02:00
Aevann1
ffcdc0aafe
make hole banners bigger on desktop
2022-06-22 22:50:58 +02:00
Aevann1
d4264279f8
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-22 22:42:21 +02:00
Aevann1
0f0a07204c
fix 500 errors
2022-06-22 22:42:19 +02:00
Snakes
7f8405ad35
CSS: hard wrap fa rules, remove fa anims.
2022-06-22 16:34:11 -04:00
Aevann1
152d39ce6c
fix controversial sorting, give priority to new posts
2022-06-22 22:30:45 +02:00
Aevann1
cc3ddf3c8b
Revert "Add polls thread to megathread directory."
...
This reverts commit 3d7d1e5ff7
.
2022-06-22 22:10:01 +02:00
Snakes
3d7d1e5ff7
Add polls thread to megathread directory.
2022-06-22 16:07:33 -04:00
Aevann1
f149198c9f
fix comments refactor
2022-06-22 22:06:25 +02:00
Aevann1
062542c5af
fix posts refactor (again
2022-06-22 22:03:57 +02:00
Aevann1
3023a45d75
fix posts refactor
2022-06-22 22:03:10 +02:00
Aevann1
10a47ca837
refactor sorting posts
2022-06-22 21:57:57 +02:00
Aevann1
8ecb4582d0
refactor sorting comments
2022-06-22 21:50:20 +02:00
Aevann1
e1d0269a81
fix 413 error for patrons
2022-06-22 21:12:12 +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
ebdda8c412
add poll_thread (fix)
2022-06-22 20:01:22 +02:00
Aevann1
414eb12410
add poll_thread
2022-06-22 20:01:00 +02:00
Aevann1
71d892a8a9
get file extension
2022-06-22 19:44:43 +02:00
Aevann1
aa403d5a3a
fix intended quotes being turned into greentext
2022-06-22 19:26:29 +02:00
Aevann1
4ba26b7872
fix bug with profile views (again) (again)
2022-06-22 18:45:34 +02:00
Aevann1
fef2e9b024
fix bug with profile views older than a month (again)
2022-06-22 18:42:45 +02:00
Aevann1
171df8a2c1
fix bug with profile views older than a month
2022-06-22 18:42:07 +02:00
Aevann1
91d7725997
make me autoupvote posts in slackernews
2022-06-22 18:28:59 +02:00
Aevann1
9ecca715fd
don't collapse the comment the user is viewing
2022-06-22 18:25:11 +02:00
Aevann1
5073258258
try to fix marseybux prinitng on PCM
2022-06-22 18:17:26 +02:00
Aevann1
d704592bdd
cache-bust all previously broken images
2022-06-22 17:59:47 +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
Snakes
b561ca413c
Hide names on reports in ghost threads.
2022-06-22 03:37:09 -04:00
Snakes
79ced3816c
Add 'hole' search operator.
2022-06-22 02:35:50 -04:00
Snakes
70c87140a3
WPD sidebar: update rules, improve styling.
2022-06-22 00:49:10 -04:00
Snakes
dedbc02968
Allow admin approval of others' TLM-less chudposts.
2022-06-21 21:13:25 -04:00
Snakes
d5d221e773
Fix layout with both card and catalog view.
2022-06-21 16:06:08 -04:00
Aevann1
cc3feaffe3
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-21 16:34:55 +02:00
Aevann1
838afa93e8
stop my autoupvote
2022-06-21 16:34:50 +02:00
Snakes
5609a96e05
Fix info leak of removed & deleted via post embeds.
...
Embedded local posts (posts which link to posts on the same site)
embed the linked post using submission_listing.html via
helpers/jinja2:post_embed. This suffered from much the same issue
recently fixed in submission.html through the addition of
`v_forbid_deleted` in the template before outputting privileged
information. A similar fix has been applied to submission_listing.
Unfortunately, this is not the most elegant fix. Surely this would be
better resolved more centrally in the submission model. However, I am
not clear at present about the precise interaction between deletion,
removal, and realbody & realurl in all of the different places they
are used. This commit fixes the problem, but it also highlights a
potential future refactoring target.
2022-06-21 02:38:18 -04:00
Snakes
f7a59f4672
Make search operators case insensitive.
...
In light of the fact that all searching against the database is done
using ILIKE pattern matching, the only truly case-sensitive part of
the search query was search operator keys. Rather than lowercase the
keys in `criteria` before returning, we instead lowercase the entire
search string at the beginning of parsing. This will further enforce
case-insensitivity on the design of search going forward.
2022-06-21 01:31:31 -04:00
Snakes
e2cd25db67
WPD: limit hole creation to JL2+.
2022-06-21 01:20:21 -04:00
Snakes
4166b2d2f0
Content: chadsoy x2, more neo-gTLDs.
2022-06-21 01:03:33 -04:00
Snakes
6c00330042
Fix markdown ordered lists breaking after index.
...
Previously, Markdown ordered lists in user content (in posts,
comments, previews, etc) would display like this:
1.
Foo bar baz.
This is because sanitize populates them as <li><p>Foo bar baz.</p></li>
Rather than mess with the Markdown engine and still not have backwards
compatibility, this has been solved in the frontend using CSS to force
the <p> to display inline.
2022-06-20 20:45:05 -04:00
Marco Rebhan
3c5e2c9455
Include message text in off-site mentions
2022-06-20 18:32:46 -04:00
Snakes
f59556cac3
stats: add WAU based on activity timestamp.
2022-06-20 16:33:47 -04:00
Snakes
f6b6997f61
Persist activity timestamp to users.
2022-06-20 16:25:03 -04:00
Snakes
35720c0a63
Include holed post edit in mobile admin actions.
2022-06-20 11:58:58 -04: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
Snakes
dee8eb5154
Replace loading.webp with new marseyloading.
2022-06-19 22:15:33 -04:00
Aevann1
c91f09b83f
put author username in mod action notifs
2022-06-20 01:08:21 +02:00
Aevann1
b5df4bca40
make expanded images' size be at least 50% of window width
2022-06-20 00:46:36 +02:00
Aevann1
ccd4dfa6ee
fix my upsoren being added before OP's upsoren
2022-06-19 23:40:07 +02:00
Aevann1
17c7529977
add ceiling to link boost
2022-06-19 23:38:25 +02:00
Aevann1
7c5e8c04b0
add .dev tld
2022-06-19 22:32:12 +02:00
Aevann1
ef3fbbf520
adjusting greentext regex
2022-06-19 22:22:36 +02:00
Aevann1
3f96a1c310
increase assetcache
2022-06-19 21:10:19 +02:00
Aevann1
0744a91a2f
fix greentexting on 4chan theme
2022-06-19 21:06:54 +02:00
Aevann1
f77a7b7cfc
fixed double quoting and triple quoting, etc
2022-06-19 20:21:25 +02:00
Aevann1
fa2681c886
fix for fae784336
2022-06-19 19:49:22 +02:00
Aevann1
d7de4f923a
fix for 96163b17bb
2022-06-19 19:46:24 +02:00
Aevann1
17c3fe9e4c
make me auto-upvote all posts in holes
2022-06-19 19:45:48 +02:00
Aevann1
96163b17bb
fix bug that made ppl unable to post images
2022-06-19 19:31:59 +02:00
Aevann1
3eb788103c
allow only ascii characters in links ( https://rdrama.net/comment/2150032 )
2022-06-19 19:25:55 +02: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
64b384fb42
put greentext in formatting
2022-06-19 18:27:23 +02:00
Aevann1
5ddde69ac9
greentext fix
2022-06-19 17:22:06 +02:00
Aevann1
c02f835708
add greentext to preview
2022-06-19 17:10:38 +02:00
Aevann1
45b1b61760
added greentext
2022-06-19 17:05:50 +02:00
Aevann1
bb1d3677c5
fix this https://i.imgur.com/6A9Rgkt.png
2022-06-19 16:55:10 +02:00
Aevann1
06677d269e
refactor process_video
2022-06-19 16:49:44 +02:00
Aevann1
5d74693c22
try converting webm to mp4
2022-06-19 15:03:14 +02:00
Aevann1
b4b411e52a
Revert "update admin panel with snakes template thing"
...
This reverts commit cde860da55
.
2022-06-19 14:34:10 +02:00
Aevann1
13a6fc8871
Revert "Finish adding admin home cards."
...
This reverts commit 26686a65ec
.
2022-06-19 14:33:51 +02:00
Snakes
612fd44298
Fix cli.py running in wrong working directory.
...
Previously, cli.py ran in <repo-root>/files. However, our relative
paths assume the working directory is <repo-root>. This resulted in
sanitize.render_emoji L153 to improperly return false when checking
for the presence of 'files/assets/images/emojis/{emoji}.webp',
leading to emojis in notifications sent by cli.py-invoked tasks to
not be rendered to HTML.
2022-06-19 05:28:07 -04:00
Snakes
26686a65ec
Finish adding admin home cards.
2022-06-19 04:55:44 -04:00
gooseman
1559cdfc1e
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-06-19 00:18:24 -07:00
gooseman
cde860da55
update admin panel with snakes template thing
2022-06-19 00:18:14 -07:00
Snakes
eb8b85eb09
Exclude drafts from edit limit.
2022-06-19 02:10:37 -04:00
Snakes
e5193cbd46
Fix mention sanitize when `g.v` not present.
...
This bug was discovered when lottery.check_if_end_lottery_task was
failing due to a stack trace thru end_lottery session < badge_grant
< send_repeatable_notifications < sanitize L208. In particular, when
`flask cron` (helpers/cron.py) executes, it does not set g.v, whereas
this code previously assumed that g.v : (None + User) and did not
check for its presence.
2022-06-18 21:22:04 -04:00
Aevann1
214d863ff3
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-19 01:55:47 +02:00
Aevann1
f1f30635b2
hide deleted posts and comments from userpages (frequently requested)
2022-06-19 01:55:45 +02:00
Snakes
27b6055d6e
Exclude JL3 from edit_post limit (megathreads &c).
2022-06-18 18:24:59 -04:00
Aevann1
193615a441
make sure thumbnails are always lower than 8 MB
2022-06-18 23:11:53 +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
dc8f230ae4
fix 500 error
2022-06-18 22:11:50 +02:00
Aevann1
dde19f7d85
fix 500 error related to variables
2022-06-18 19:50:03 +02:00
Aevann1
5520447d55
make modmail messages use the files refactor
2022-06-18 19:41:24 +02:00
Aevann1
8eaacff14b
switch "chaptraphouse.club" with "rdrama.lol"
2022-06-18 18:32:43 +02:00
Aevann1
b34dd88560
remove legacy code in video upload (thx @everyone)
2022-06-18 18:23:10 +02:00
Aevann1
b017dedd24
fix bug in image preview in /submit
2022-06-18 18:20:36 +02:00
Aevann1
453d83856e
add .press tld
2022-06-18 18:07:57 +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
8d83c6944b
readjust ricardo3
2022-06-18 15:27:04 +02:00
Aevann1
31b0bd5b68
readjuct ricardo3 again
2022-06-18 15:22:03 +02:00
Aevann1
088e98ed1b
readjuct ricardo3
2022-06-18 15:21:03 +02:00
Aevann1
89a85a8ec0
remove weird trailing tabs
2022-06-18 04:13:55 +02:00
Aevann1
7387616100
move all of wholesome award to translate
2022-06-18 04:11:27 +02:00
Aevann1
712bb52392
fix 500 error on /settings/gumroad
2022-06-18 03:59:33 +02:00
Aevann1
76ac00f04b
convert 1 part of wholesome award on inferior browsers to translate + clean up awards.css
2022-06-18 03:53:25 +02:00
Aevann1
c609e98ba5
move ricardo from top-left to translate
2022-06-18 03:39:50 +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
c42cb538aa
add a button for PCM to print marseybux
2022-06-18 02:35:27 +02:00
Aevann1
82cede6e1a
more gif modal bullshit
2022-06-18 01:57:02 +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
Aevann1
28fa03669d
use f-string
2022-06-18 00:14:27 +02:00
Aevann1
0b0e3454f8
Fix replacement of link with itself (stolen from themotte)
2022-06-18 00:10:19 +02:00
Aevann1
c01d53aa0d
make mentioning case-insensitive again
2022-06-18 00:03:23 +02:00
Aevann1
50135ce159
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-17 22:42:34 +02:00
Aevann1
17144cd98e
Added mentions to the markdown preview (stolen from themotte)
2022-06-17 22:42:31 +02:00
Snakes
c46f785229
Loosen auth requirement on /directory.
2022-06-17 16:38:30 -04:00
Aevann1
fae0bee0d9
Refactored mention sanitization (stolen commit from themotte)
2022-06-17 22:37:27 +02:00
Aevann1
a771596d25
videos bullshit
2022-06-17 22:23:04 +02:00
Aevann1
38c12209fb
move from os.sytem to subprocess.run, and fix bug
2022-06-17 22:16:22 +02:00
Snakes
a0d923e759
Use subprocess.check_call in media.py
2022-06-17 16:15:42 -04:00
Aevann1
62d5a0d8dc
Revert "use notify_mod_actions in deletion msg"
...
This reverts commit d7a84a2188
.
2022-06-17 21:28:37 +02:00
Aevann1
d7a84a2188
use notify_mod_actions in deletion msg
2022-06-17 21:27:32 +02:00
Aevann1
e072e15819
cache profile pics for 1 day to prevent DDOS
2022-06-17 21:21:26 +02:00
Aevann1
30ed6daa26
fix RCE, thank you @Camas
2022-06-17 20:36:34 +02:00
Aevann1
4bae98dab0
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-17 20:30:08 +02:00
Aevann1
2c6b6cc371
notify chadmins of hole deletions
2022-06-17 20:30:05 +02:00
Snakes
b995b4ddfb
Amend 9b17bb1cfe78: fix userpage for logged-out.
...
The previous fix to shadowbanned users not being able to view their
own profile broke userpages for logged out users (and filled the log
up with 500s) due to sloppy logic around accessing v.id. This has
been remedied.
2022-06-17 02:30:20 -04:00
Snakes
9b17bb1cfe
Fix shadowbanned 404 on own profile.
2022-06-16 20:06:00 -04:00
Aevann1
35875d69f6
stop replacing "nitter.net" with "twitter.com" (to fix this shit https://chapotraphouse.club/post/77517/xueen-ezra-is-taunting-the-pigs/2132884?context=8#context )
2022-06-16 18:46:32 +02:00
Aevann1
65d9209568
increment css in assetcache.html
2022-06-16 17:57:25 +02:00
Aevann1
99910591c5
fix this https://i.imgur.com/rBomhtq.png
2022-06-16 17:36:01 +02:00
Aevann1
0fb48bc380
make reddit_notifs_jl_min default to be 1
2022-06-16 16:15:24 +02:00
Aevann1
d4260138f5
Revert "de-nerf tilt award on mobile"
...
This reverts commit 3985a58815
.
2022-06-16 14:37:23 +02:00
Aevann1
cab92d3c24
add marsey.cat to safe list
2022-06-16 14:36:43 +02:00
Aevann1
cef023ded3
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-16 14:34:37 +02:00
Aevann1
57e63a2d8b
hide autopoller/autobetter/autochoice from /comments
2022-06-16 14:34:35 +02:00
Snakes
46520a9f8c
Site-specific: change lotto for PCM.
2022-06-15 22:23:21 -04:00
Aevann1
59456fc895
Revert "fuck you, use a real browser"
...
This reverts commit 6ecca70924
.
2022-06-16 02:31:14 +02:00
Aevann1
6ecca70924
fuck you, use a real browser
2022-06-16 01:56:24 +02:00
Snakes
a8155d964a
Kitchen sink: emoji content, assert, assetcache.
...
These are all minor and uncontroversial enough it just felt gross
making multiple commits.
- Adds marseymummified.
- Changes the new `raise ValueError(...)` in badge_grant to
an `assert`.
- Expands assetcache to a convenient grab bag of JS files.
2022-06-15 17:17:31 -04:00
Snakes
aea7e0b83a
Exclude golden Marseys from animations flag.
...
Fixes: https://rdrama.net/post/18459/-/2128499?context=8#context
2022-06-15 16:40:30 -04: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
Aevann1
ef00f31831
trying to fix a bug with old image embeds
2022-06-15 22:23:22 +02:00
Aevann1
4a1b3c03af
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-15 22:12:05 +02:00
Aevann1
cd5f8a528b
in the preview, dont replace '\n' with '\n\n' if the text
...
has "```" or "<pre>" (to match backend behavior)
2022-06-15 22:12:03 +02:00
Snakes
f8ae2a3d17
Amend 3bc98f0a6b84: minor logic, style.
2022-06-15 16:08:26 -04:00
Aevann1
f4a6e76ab5
add nuke and un-nuke notifications
2022-06-15 21:36:02 +02: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
d32a3774a6
fix bug where user banner sometimes wasn't shown on mobile
2022-06-15 20:29:54 +02:00
Aevann1
3985a58815
de-nerf tilt award on mobile
2022-06-15 19:05:04 +02:00
Aevann1
d8ee822082
stop rules from being hidden for mobilecels in hamborger menu
2022-06-15 18:32:45 +02:00
Aevann1
2b805d823c
display sidebar for mobilecels in "/sidebar"
2022-06-15 18:31:46 +02:00
Aevann1
f990397888
more gif modal bullshit
2022-06-15 18:25:31 +02:00
Aevann1
e1c72d580d
fix gif modal (kill me)
2022-06-15 18:16:07 +02:00
Aevann1
93ec09e457
fix gif modal (oh my god)
2022-06-15 18:13:34 +02:00
Aevann1
8458480661
fix gif modal (again)
2022-06-15 18:11:43 +02:00
Aevann1
70164932e1
make gif modal column count 2 instead of 4 on mobile
2022-06-15 18:00:13 +02:00
Aevann1
53228db13f
attempting to fix a bug with old gifs (no idea if this will work)
2022-06-15 17:45:26 +02:00
Aevann1
5eb67989da
reduce gif modal columncount on desktop from 7 to 4
2022-06-15 17:44:30 +02:00
Aevann1
3c598a0393
reduce gif modal padding
2022-06-15 17:44:12 +02:00
Aevann1
69b4667ad0
revert max image size
2022-06-15 15:38:34 +02:00
Aevann1
7ec994d4b3
show gift reason in public transfer log
2022-06-15 15:36:33 +02:00
Aevann1
cdcef7d01d
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-15 15:32:55 +02:00
Aevann1
ff9c7c17fb
readjust prophet muhammed (ï·º) slur filter
2022-06-15 15:32:52 +02:00
Snakes
f04c3d6cdd
Asst'd mobile CSS & markup fixes.
...
Kitchen sink commit of semi-related things:
- `#profile--bio a` tags didn't properly wrap on mobile with some
browsers. Changing overflow-wrap may fix this.
- Userpage markup for mobile tried to place profile_bio inside a
<p> tag. Nesting paragraphs is invalid HTML. It has been made a
<div> to match desktop and even nearby sections on mobile.
- Fedi icon in mobile dropdown had the wrong classes, which broke
consistent styling with its neighbors.
- fa-square-share-nodes improperly wound up with the fa-share-nodes
character code when committed.
2022-06-15 05:59:27 -04:00
Snakes
e5830ebec7
Add fedi to mobile nav, icon changes.
2022-06-15 04:35:13 -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
Snakes
564f5b38f1
Clarify notif color logic, extend to modaction.
...
Previously, notification bell linking & color logic was interspersed
between templates and the user model. It doesn't _really_ belong in
the user model, but it's been moved out of the templates to there to
at least centralize it. This was also used as an opportunity to make
the modactions inbox color the bell appropriately.
2022-06-15 01:43:34 -04:00
Snakes
e578108903
Add fediverse to nav dropdown.
2022-06-15 00:44:16 -04:00
Snakes
dfe0c64d99
Deduplicate site-specific constants, add SNAKES_ID.
2022-06-14 23:39:37 -04:00
Snakes
1e26fb3d79
Hide self-deleted posts from other users.
2022-06-14 18:04:22 -04:00
Snakes
3301e238d6
Content: alphabet emoji, christian list.
2022-06-14 14:37:45 -04:00
Snakes
c61375288f
Content: add TLD to sanitize.
2022-06-14 03:48:02 -04:00
Aevann1
70d4d73cd0
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-14 07:54:39 +02:00
Aevann1
e19d54a37e
fix expanded image modal
2022-06-14 07:54:36 +02:00
Snakes
131ae3027b
Content: Snappy Christian /h/truth.
2022-06-13 20:43:56 -04:00
Aevann1
285aa6a857
limit post padding to posts with "tilt" award only
2022-06-13 23:43:58 +02:00
Aevann1
cec1994ff7
ppl with code contributor badge can now make "(changelog)" posts
2022-06-13 23:41:29 +02:00
Aevann1
f84336143f
adding padding to posts (for tilt award)
2022-06-13 22:12:04 +02:00
Aevann1
29d2a549c4
remove !important from tilt award css
2022-06-13 21:08:57 +02:00
Aevann1
92aaa125f8
Revert "rename "#post-award-confetti" to "confetti" (minimalism autism""
...
This reverts commit 87549f9d3c
.
2022-06-13 20:55:18 +02:00
Aevann1
77fab77712
readjust image limits (again)
2022-06-13 20:53:36 +02:00
Aevann1
87549f9d3c
rename "#post-award-confetti" to "confetti" (minimalism autism"
2022-06-13 20:51:23 +02:00
Aevann1
8e8fd8c1da
catch invalid ticket quantity 500 error
2022-06-13 20:34:57 +02:00
Aevann1
0f49c8e32f
replace spaces with tabs
2022-06-13 20:33:25 +02:00
Aevann1
d8fff0bc72
Revert "Fix giant patting hand UI bug."
...
This reverts commit 7915eb8390
.
2022-06-13 20:31:28 +02:00
Aevann1
48f80294fd
readjust image limits
2022-06-13 20:19:20 +02:00
Aevann1
f4aa70cc74
Revert "Add user title coin cost parameter."
...
This reverts commit dece3fd460
.
2022-06-13 20:10:53 +02:00
Aevann1
07f2c0d2ca
make marsey counter work everywhere (not just comments)
2022-06-13 20:05:24 +02:00
Aevann1
8f72407f84
show the party hat in the header too
2022-06-13 19:46:40 +02:00
Aevann1
74a5ea88ac
expand post searching to include bodies (instead of titles only)
2022-06-13 19:33:20 +02:00
Aevann1
53a8818f80
fix snappy gambling
2022-06-13 19:30:04 +02:00
Aevann1
f8c60e61f9
expand modaction notifications to ban, unban, and grass awards
...
(but only if used by JL3, since they can print awards willy nilly)
2022-06-13 19:22:30 +02:00
Aevann1
daab141798
increase award-coulmns from 6 to 7
2022-06-13 19:13:16 +02:00
Aevann1
8a5d2ad9f8
tinker with image heights a little
2022-06-13 19:00:50 +02:00
Aevann1
fdbc2d2f2c
make user banners expand in the same page (like hole banners)
2022-06-13 18:57:44 +02:00
Aevann1
dd09eff539
fix oversight in ba883a5340
2022-06-13 18:50:30 +02:00
Aevann1
248e743ddb
change fb0a590007
to make it include ALL images on the site
2022-06-13 18:47:56 +02: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
5a0dccbd50
fix missing comma in fb0a590007
2022-06-13 18:36:45 +02:00
Aevann1
fb0a590007
limit max-height of expanded images to 100% of monitor height
2022-06-13 18:33:09 +02:00
Aevann1
6d1f7646ba
elaborate in lottershe message
2022-06-13 18:30:27 +02:00
Aevann1
c8e0d8b1c3
catch email exception
2022-06-13 18:28:37 +02:00
Aevann1
ba883a5340
give chadmins notifications for unbans and unremovals
2022-06-13 16:40:16 +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
Snakes
fb52003404
Hide block & follow notifs from shadowed.
2022-06-12 22:11:55 -04:00
Aevann1
0fe3936cbb
make CTRL+Enter work on input fields too
2022-06-12 20:11:06 +02:00
Snakes
acde2c856b
Enable JL2 viewing shadowbanned comments.
2022-06-12 05:48:27 -04:00
Snakes
7915eb8390
Fix giant patting hand UI bug.
...
Despite being very fun, this fixes the recently discovered bug where
placing '#' or '!' within the 'pat:' suffix of a patted emoji causes
the enclosing <span> to not be given the proper CSS `display` or
`position`, leading to the hand being sized relative to the comment
bounding box rather than the emoji box.
This should be backward compatible. The only posts it wont fix are
existing ones with the giant hands. Main example being:
https://rdrama.net/h/slackernews/post/76302/
2022-06-12 02:22:38 -04:00
Snakes
f76b94b58d
Content: keywords updates.
2022-06-11 22:08:48 -04:00
Aevann1
85b4158d5b
"1 lottery tickets" -> "1 lottery ticket"
2022-06-11 16:52:20 +02:00
Aevann1
30f71855f4
fix 5e9297b78f
2022-06-11 16:50:26 +02:00
Aevann1
5e9297b78f
rename "Lottershe" to "Lottery" on other sites
2022-06-11 16:44:13 +02:00
Aevann1
adefc09ae9
rename "dramacoins" to "coins", so that it works on other sites
2022-06-11 16:40:53 +02:00
Aevann1
cf83a996bd
let losers know how much coins the winner won
2022-06-11 16:40:14 +02:00
Aevann1
b94fabddb4
rDrama -> SITE_NAME
2022-06-11 16:39:00 +02:00
Aevann1
165e394dea
decreased award threshold from 4GB to 3GB
2022-06-11 15:56:21 +02:00
Aevann1
1212804fbf
exclude pings from link counter
2022-06-11 15:19:39 +02:00
Aevann1
f80424b103
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-11 15:07:51 +02:00
Aevann1
c59708c416
fixed uneven award modal on mobile
2022-06-11 15:07:47 +02:00
Snakes
4b1faca58e
Swap create/browse holes in sidebar.
2022-06-11 08:49:17 -04:00
Aevann1
3ec049e222
testing commit #2
2022-06-11 14:33:17 +02:00
Aevann1
6314b0f788
testing commit #1
2022-06-11 14:31:43 +02:00
Aevann1
831344b723
small image embed improvements
2022-06-11 14:21:59 +02:00
Aevann1
12a9307ab3
don't restrict file extensions on the frontend side (leave it to the backend)
2022-06-11 13:38:45 +02:00
Aevann1
a082105ab8
remove weird trailing tabs
2022-06-11 11:56:16 +02:00
Aevann1
c0da5ed7d9
make twitter links have "nofollow noopener norefeerrer"
2022-06-11 11:53:53 +02:00
Aevann1
3b50c92afb
make padding for notification tabs smaller on small devices
2022-06-11 11:37:30 +02:00
Aevann1
79df456d13
fix gigantic lottery messages on mobile
2022-06-11 11:33:40 +02:00
Aevann1
358ce08544
don't collapse gambling comments when viewing a comment
2022-06-11 11:30:46 +02:00
Aevann1
1f42d228c1
remove 'apnic' from word list
2022-06-11 11:27:55 +02:00
Snakes
28002844e4
offsitementions: Fix notif logic.
2022-06-10 22:04:17 -04:00
Snakes
bebc0f11ef
Revert "delete useless file"
...
This reverts commit 5634330c66
.
The empty __init__.py is _NOT_ useless. It makes Python treat `files`
as a module properly, and it breaks cli.py and the cronjobs if it is
deleted. Yes, we need the empty file.
2022-06-10 21:50:09 -04:00
Aevann1
07e98ab2f0
Revert "yandex verification"
...
This reverts commit dfbc645ffe
.
2022-06-11 01:08:34 +02:00
Aevann1
dfbc645ffe
yandex verification
2022-06-11 01:05:59 +02:00
Aevann1
f548c2077d
show names of all files when pasting instead of just the first file
2022-06-11 00:37:55 +02:00
Aevann1
964318fe5d
fix push notifications
2022-06-11 00:14:03 +02:00
Aevann1
bceb87d58c
disable the JS for shit/fireflies/fireworks/strippercake
...
awards on devices with less than 4 GB RAM
2022-06-10 23:58:17 +02:00
Aevann1
f7cce1469c
Revert "use redis for site settings instead of a json file"
...
This reverts commit a7b67db555
.
2022-06-10 23:52:32 +02:00
Aevann1
d5ca8bf7cb
Revert "move site settings into redis 2"
...
This reverts commit 7848b12fdd
.
2022-06-10 23:52:17 +02:00
Aevann1
5634330c66
delete useless file
2022-06-10 23:50:49 +02:00
Aevann1
545f276940
add created_utc column to badges for ordering them on userpages
2022-06-10 23:40:43 +02:00
Aevann1
7848b12fdd
move site settings into redis 2
2022-06-10 23:39:33 +02:00
Aevann1
a7b67db555
use redis for site settings instead of a json file
2022-06-10 23:22:09 +02:00
Aevann1
9fb33d064a
disallow #21262c from being used as a name color or a flair color
2022-06-10 22:52:20 +02:00
Aevann1
87ba1ba50e
fix benefactor exploit (thx sneks my beloved)
2022-06-10 22:40:04 +02:00
Aevann1
79bc71f132
change sidebar artwork megathread link for idio
2022-06-10 22:35:19 +02:00
Aevann1
d84a4c7ce9
convert monthly marseybux into a cron task
2022-06-10 22:23:01 +02:00
Aevann1
760aa397c8
refactor monthly marseybux logic a little bit
2022-06-10 22:13:20 +02:00
Aevann1
b4b4ab1e9a
when granting monthly awards, add 5 days to the date
...
so when I grant awards on 29/5 for example,
it says in the notification "for the month of July" instead of "for the month of May"
extremely minor but I have autism
2022-06-10 22:09:59 +02:00
Aevann1
654ddc4157
re-refactor normalize_url
2022-06-10 22:02:15 +02:00
Aevann1
2af325de97
make "previous" and "next" buttons bolder
2022-06-10 21:49:07 +02:00
Aevann1
cda275c194
replace \n with \n\n in previews (to match the backend behavior)
2022-06-10 21:45:48 +02:00
Aevann1
b2b86abfd0
trim selection on quoting
2022-06-10 21:43:39 +02:00
Aevann1
995e6e9edb
add thumbnail for posts linking to same site
2022-06-10 21:21:25 +02:00
Aevann1
36a1797276
escape / in imgur_regex
2022-06-10 21:04:25 +02:00
Aevann1
f2d49f981d
host the image used in 4chan.css ourselves
2022-06-10 21:00:06 +02:00
Aevann1
9781443f89
Increase margins for "block hole" and show "follow hole" to loggedout-cels
2022-06-10 20:17:58 +02:00
Aevann1
4910681c6f
make the default HOLE_COST 0 (for testing purposes)
2022-06-10 20:14:24 +02:00
Aevann1
733ac0e319
make the js for gif insertion a little better
2022-06-10 20:13:01 +02:00
Aevann1
5d6343159b
reduce column count from 8 to 6
2022-06-10 20:09:13 +02:00
Aevann1
10ffa90167
make the javascript use 1 linefeed instead of 2
...
we don't need it to do 2 linefeeds anymore
because the backend handles that before sanitizng
2022-06-10 20:05:54 +02:00
Aevann1
f9a0cff350
make the page always jump to the comment you wanna view
2022-06-10 20:01:12 +02:00
Snakes
642f5e7a1c
Holes: remove JL3 on /create_hole
2022-06-10 12:59:25 -04:00
Aevann1
558726228e
fix floating awards being too large
2022-06-10 17:47:17 +02:00
Aevann1
e53a286d49
notify mods of the deletion of their holes
2022-06-10 17:41:33 +02:00
Aevann1
6a18c31ced
exclude localhost from reddit notifs
2022-06-10 17:30:30 +02:00
Aevann1
774e079942
extend reddit notifs to ALL SITES
2022-06-10 17:25:03 +02:00
Snakes
78d784533c
Fix syntax & imports in offsitementions.py
2022-06-10 11:13:32 -04:00
Aevann1
05d6a24535
Tell ppl who won the lottery in loss messages
2022-06-10 16:53:29 +02:00
Aevann1
e483accffb
fixed this https://files.catbox.moe/qdcbvd.png
2022-06-10 16:47:34 +02:00
Aevann1
abae90fbfd
fixed bug with snappy gambling
2022-06-10 16:44:30 +02:00
Aevann1
5db4bd1023
made CARP_ID to be 0 on new sites
2022-06-10 16:44:05 +02:00
Aevann1
6800d33019
replace streamable links with full-size version
2022-06-10 16:35:09 +02:00
Aevann1
1adf12cf71
add forgotten </i>
2022-06-10 16:10:04 +02:00
Aevann1
22f3749df3
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-10 16:04:52 +02:00
Aevann1
dcf5207e83
all 'app' tld (for discussions.app)
2022-06-10 16:04:49 +02:00
Snakes
2f1761330c
Lottery: remove manager, make cronjob friendly.
2022-06-10 09:50:03 -04:00
Aevann1
3e365484fd
refactor lottery a little bit + expand it to all of marsey's empire
2022-06-10 15:30:25 +02:00
Aevann1
38686e8e1e
remove useless fontawesome css rules
2022-06-10 15:28:50 +02:00
Aevann1
a6f80d8104
Changed the icon for "unfollow hole"
2022-06-10 15:24:10 +02:00
Aevann1
f09e6bf67c
add icon for "block hole"
2022-06-10 15:21:03 +02:00
Aevann1
039a27100d
add small margin to the icon of "Follow hole"
2022-06-10 15:13:25 +02:00
Aevann1
76174edb89
Fixed bug with unfound template
...
(oversight when I renamed /create_sub to /create_hole)
2022-06-10 14:50:11 +02:00
Aevann1
2db414f12d
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-10 14:48:14 +02:00
Aevann1
2b82f95a98
Make hole cost constant instead of variable
2022-06-10 14:48:11 +02:00
Snakes
4db48a6ec9
Separate modaction notifs from inbox.
2022-06-10 08:28:46 -04:00
Snakes
8709ca816d
Add Y'all Seein' Eye award v2 for offsitementions.
...
Reusing the assets and design for the ill-fated YSE in a0f441a67d
.
This time, the award provides access to our offsite mentions (reddit
notifs).
2022-06-10 07:12:19 -04:00
Snakes
bea6d82b61
Lottery: fix granted value, zero royalty.
...
grant_lottery_tickets_to_user incorrectly deposited the full ticket
value into manager account, not just the net value.
Additionally, royalty rate has been set to zero because Chapose won
the first lottery and grifting 8% that could instead go into the
prize pool seems unwarranted given that.
2022-06-10 06:15:37 -04:00
Snakes
b0554ce303
Add follower count to /holes table.
2022-06-10 06:06:56 -04: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
934b631730
rename /create_sub to /create_hole
2022-06-10 00:29:45 +02: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
dc7f13304e
Add following holes for notifications.
2022-06-09 16:24:24 -04:00
Aevann1
39e0e6d017
make cron also calculate stats (based and cronpilled)
2022-06-09 20:09:49 +02:00
Aevann1
c100ed415c
increase edit_post ratelimit so it doesnt fuck with drafts
2022-06-09 20:09:18 +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
cea253a52c
don't notify me anymore of carp posts
2022-06-09 15:29:13 +02:00
Aevann1
900edaa92e
made it so you can click "CTRL+Enter" anywhere in
...
/submit in order to make a post
2022-06-09 13:12:25 +02:00
Snakes
b94e71450f
Add un-holing to hole report command.
2022-06-09 02:42:52 -04:00
Snakes
5a5a0f6bd1
Swap badge 139 asset to rescale.
2022-06-08 01:29:12 -04:00
Snakes
63f45f81fd
Make shop flavor text site-specific.
2022-06-07 23:25:39 -04:00
Snakes
ed240735fb
Improve slur replacer performance, part deux.
...
h/t @official-techsupport again for finding another optimization.
We are now cumulatively at about 70% speedup over original.
It remains one of the hottest paths of the codebase in relative
terms, but its absolute performance demands have decreased enough
to buy us potentially substantial time on it.
2022-06-07 21:56:14 -04:00
Snakes
da82ea81d8
Improve slur replacer performance.
...
h/t @official-techsupport for digging into the regex performance and
coming up with one that greatly reduces backtracking. We see an
approximately 2x speedup under typical loads, which proves to be a
major overall savings in performance. Previously, censor_slurs was,
second to ORM DB accesses, by far the most time-consuming function
in the codebase under typical loads. It's still not ideal, but it is
much better.
Future options to improve this critical path further would be:
1) Precompute a slur-replaced HTML, rather than recomputing
each pageload. Storage is cheap.
2) Tokenize the HTML and replace plaintext words using O(1)
exact-match lookups to a dict.
2022-06-07 21:16:58 -04:00
Snakes
e85d76947a
Lottery: fix negative ticket quantity exploit.
2022-06-07 17:50:31 -04:00
Snakes
995375decc
Refactor reddit mentions, move to cron.
...
The reddit mentions system contained much duplicated code and was
grafted onto the post thumbnail pipeline to achieve semi-regular
invocation. Instead, we now run it through the new cron system,
and the duplicate code has been refactored out.
2022-06-07 10:42:24 -04:00
Snakes
152315f73e
cron: Move charts from static to helper.
2022-06-07 08:31:24 -04:00
Snakes
ace0a62f69
cron: Add lottery as scheduled task.
2022-06-07 07:36:55 -04:00
Aevann1
690d4d72ed
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-07 13:34:59 +02:00
Snakes
e217335b3a
Make pat anims unaffected by anim setting.
2022-06-07 07:29:07 -04:00
Aevann1
d431ae1ecd
re-prioitize effortposts (with a lot of links) in the frontpage
2022-06-07 13:26:39 +02:00
Snakes
b187b72746
Remove backdrop blur on modals.
...
By direct command of Benevolent rDrama Caliph for Life, his
exaltedness Aevann. Was causing performance issues on a large
number of users' systems.
2022-06-07 07:23:46 -04:00
Snakes
acb3a0b338
Enable flask command, add cron target.
...
Adding an empty __init__.py, the imports-only cli.py, and setting
FLASK_APP in the environment are enough to get the `flask` command
to work. This will enable future changes, including database
migrations.
The proximate reason for the fix is to add a `flask cron` command
to run scheduled tasks within the application from cron. Specifically,
the lottery should be run from cron.
2022-06-07 06:57:26 -04:00
Aevann1
aaeb09fd91
add me to WPD discord too
2022-06-07 12:55:50 +02:00
Aevann1
ecc121bf93
fix gigantic wholesome award size on mobile
2022-06-07 12:52:48 +02:00
Aevann1
4a98c2a639
don't whitelist fagmins
2022-06-07 12:34:46 +02:00
Aevann1
1bce1c273f
no more 500 error
2022-06-07 12:32:48 +02:00
Aevann1
4a1e6cc726
a 500 error is much better than an XSS, bro
2022-06-07 12:03:51 +02:00
Snakes
cb5f9d05c6
templates: Fix improper plurals, create helpers.
...
Previously, the three instances of 'Report[s]' and one instance of
'Coin[s]' in the UI templates were always pluralized, even when they
referred to a singular instance. This has been corrected by creating
a `plural` helper macro.
Additionally, this was used as impetus to create `utils/helpers.html`
to eventually move more recurring template logic into macros.
2022-06-07 05:26:22 -04:00
Aevann1
f966262b97
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-07 11:18:12 +02:00
Aevann1
d761fc27cd
Revert "Make CARP_ID's flair uneditable by others."
...
This reverts commit c2266985b7
.
2022-06-07 11:18:09 +02:00
Snakes
70b96162a7
Fix banned domain info leak in modlog.
2022-06-06 22:18:56 -04:00
Snakes
dece3fd460
Add user title coin cost parameter.
2022-06-06 19:02:23 -04:00
Aevann1
4aeb438c6b
extend removal notifs from only me to all Lvl3 jannies
2022-06-06 07:50:38 +02:00
Aevann1
282f8d885c
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-06-06 07:42:21 +02:00
Aevann1
b2ec368a7e
give me a better discord role
2022-06-06 07:42:19 +02:00
Snakes
7556fe8988
Add lottershe badge logic, badge helper.
2022-06-06 00:07:38 -04:00
Aevann1
43dbcadc6b
add me into jannycord
2022-06-05 17:05:43 +02:00
Snakes
0e0a8d391b
Amend 20b136909: string comparison bug.
...
Fixes logic which failed because user_id was a string which I
improperly treated as an integer for comparisons.
2022-06-04 23:58:03 -04:00
Snakes
c2266985b7
Make CARP_ID's flair uneditable by others.
...
This is a kludge solution that sticks special case logic in places
it shouldn't be. However, community management demands necessitate it
quickly. Of the three ways to change a flair (customtitle), this
prevents using flairlocks and admin flair editing on the user with
CARP_ID. Only the user himself may change his flair through settings.
2022-06-04 23:34:44 -04:00
Snakes
5fb358a32a
Add more TLDs to sanitize.
2022-06-03 17:01:32 -04:00
Snakes
998a8f462e
Add links to orphan endpoints.
2022-06-03 06:29:35 -04:00
Snakes
b306d113ad
Lottery: Fix treasure adding coins to manager.
...
It was observed in prod that the lottery prize as tracked by the DB
had diverged from the amount held in the Lottershe manager account.
This appears to be the result of grant_lottery_tickets_to_user
adding the # of _tickets_ rather than the value of those tickets to
the manager.
2022-06-03 02:24:32 -04:00
Snakes
843ff51ace
Make post rate limit site-specific.
2022-06-02 22:10:59 -04:00
Snakes
379ae664a3
Make PIN_LIMIT a per-site constant.
2022-06-02 19:45:33 -04:00
Snakes
6b9a133204
Kitchen sink commit, misc. content updates.
...
- Increment cache version on popover badges.
- Add comments+submission_listing.js to assetcache to support ^.
- Append new words to wordle list.
- Cache bust assorted assets for recent PRs.
2022-06-02 19:32:13 -04:00
outruncolors
dfd521b652
Add quantity field to purchasing tickets / Make Chapose the beneficiary ( #302 )
...
* Add quantity field to purchasing tickets
* Remove height requirement for div (manlets seething)
2022-06-02 19:19:49 -04:00
float-trip
58c4b62163
Some fixes ( #300 )
...
* Narrow emoji_regex
* Fix mirrored pat emojis
* Fix ban icon on posts/comments
2022-06-02 19:18:10 -04:00
Snakes
2008c09136
Add 'filter' to allowed_styles.
2022-06-02 06:14:20 -04:00
Snakes
df3127785a
Rename 'shit emojis.json' for sanity.
2022-06-02 05:15:41 -04:00
Snakes
9bb84baf61
theme: Fix dramblr readability.
2022-06-01 20:01:26 -04:00
Snakes
aa9b59e1cb
Improve lottery UI theme compat.
2022-06-01 18:07:02 -04:00
Snakes
fd1429a82f
PCM content: swap banner.
2022-06-01 16:08:33 -04:00
float-trip
d1fd7d4cc3
Remove margin-bottom on header tags in blockquotes ( #299 )
2022-06-01 02:31:34 -04:00
Snakes
227ddbec0e
Truncate notifs with too-long bodies.
...
In general, we don't do a great job of length validating body_html
fields. Lots of ways to get 500 errors by providing too long of
input. Really ought to find a way to fix it in the classes/comment.py
and classes/submission.py classes. In the interim, the recent gifts
messages change is salient because the notification can 500 out
mid-way through performing coin transactions.
Recommended to find a better way of truncating or safely bubbling
the exception up. Truncating probably not best long-term solution
because it could hypothetically permit strings that would otherwise
be considered unsanitized.
2022-06-01 00:54:05 -04:00
Snakes
1d49012c16
Revise 16587cdf7cf5, expand assetcache.
...
Assetcache: now supports js/userpage.js & js/userpage_v.js.
The three userpage*.html templates now implement it.
Revising gift messages 16587cdf7cf5:
- routes/users.py: Deduplicate code, more descriptive var name.
- templates/userpage.html: Move post-tax gift line below reasons
box. Ultimately just an aesthetic change.
2022-06-01 00:11:23 -04:00
Ubuntu
453d5f57a3
added a gift message to go with coin and bux transfers
2022-06-01 00:10:33 -04:00
Snakes
49622b3268
Lottery: add admin participants listing.
2022-05-31 23:20:39 -04:00
Snakes
193adb82d2
Lottery: fix page ready listener.
2022-05-31 22:55:31 -04:00
Snakes
8ae84214a3
Disable modal backdrop when !animations setting.
...
Some users have complained about performance with the backdrop-filter
on .modal-backdrop.show. Partially as a kludge to avoid adding another
toggle, the 'animations' user setting now also disables the backdrop
filter. In practice, this may turn into a more general setting to
remove performance-intensive UI effects.
2022-05-31 21:03:04 -04:00
Snakes
79e338de38
Treasure: raise minimum reward 10 -> 12.
...
A rare case where users receive 0 lotto tickets from a treasure chest
occurs when they received 10 or 11 coins from a chest pre-conversion
to lotto tickets. Rather than change ticket_count to the ceil of
dividing coins by ticket cost, it seems less distortionary to instead
imperceptibly raise the minimum to avoid this case.
2022-05-31 20:23:19 -04:00
Snakes
b63e7c3d36
Cachebust badge images.
2022-05-31 13:07:08 -04:00
Snakes
5d56e71cc9
Rate limiter: fix 81e2a5a for logged-out.
2022-05-30 23:50:56 -04:00
Snakes
4ba2098612
Rate limiter: whitelist admins.
...
Due to presently hitting perpetual 429s after a mishap with lottery
polling on production, among past events where admins have gotten
rate-limited for doing otherwise normal admin behavior, the
flask_limiter.Limiter now has a request filter to whitelist JL2+.
Despite running on every request, I don't anticipate this undermining
the DoS prevention power of the Limiter.
It is yet unknown whether there are edge cases where running
get_logged_in_user in a different spot in the request pipeline might
e.g. subtly break the logged-in counters. This is not expected at
present, however.
2022-05-30 23:01:18 -04:00
Snakes
c73f97c183
Finalize assets for lottery page.
2022-05-30 22:44:32 -04:00
outruncolors
c2f598a17f
Move lottery to own page ( #296 )
2022-05-30 22:40:38 -04:00
Snakes
b85f23becb
assetcache: Bust 2dda7529a4
, expand.
2022-05-30 20:20:14 -04:00
outruncolors
2dda7529a4
Minor styling changes ( #295 )
2022-05-30 20:13:25 -04:00
Snakes
04a878a8c4
Make betting polls respect can_gamble.
2022-05-30 08:13:11 -04:00
Snakes
e32a4bda48
Add set/unset nsfw on comment to modlog.
2022-05-30 08:00:16 -04:00
Snakes
75758dd511
Feeds: make RSS valid, part trois.
...
Hopefully finishes the RSS fix saga. This one done in-house rather
than by patch, as 5d6d4f9ca0
and 29fdc774a9
had been.
This final change ensures the <updated> tag is always used, even
for un-edited posts. This appears to pass the W3C Validator using
local test data. We shall see how it behaves with data on prod.
2022-05-30 07:27:52 -04:00
Aevann1
ddc4fe756e
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-30 13:07:35 +02:00
Aevann1
d1eda8c28c
fixing https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2021592?context=8#context
2022-05-30 13:07:03 +02:00
Snakes
29fdc774a9
Feeds: make valid, part deux.
...
Continuation of 5d6d4f9ca0
. Again, h/t to our friends at WPD
for providing a patch.
2022-05-30 06:58:42 -04:00
Snakes
b3604cca9f
Remove chat icon from mobile header.
...
3106823511
added a chat icon to the navbar on mobile. I forgot that
the bottom navbar on mobile already had one. It has therefore been
removed, thus totally alleviating issues with wrapping when a user
is both an admin and has a high notification count.
2022-05-30 06:31:07 -04:00
Snakes
81e19b1aed
Add can_gamble user setting.
...
Users now have a toggleable can_gamble setting which disables their
ability to use all chance-based gains on the site: viz. slots,
blackjack, the lottery, and treasure chests.
This only applies on invocation of commands that start gambling
games, so it should cause no bugs when toggled with e.g. active
blackjack games.
This was added for the benefit of users with actual problems with
gambling, be they past addiction or religious conviction. All future
gambling features are humbly requested to respect it.
2022-05-30 05:32:45 -04:00
Snakes
470a3c76f5
Cache-bust main.css for d19a73c82.
2022-05-30 04:54:46 -04:00
Snakes
15d2be85f2
Remove delayed color change on voting.
2022-05-30 04:52:33 -04:00
Snakes
5d6d4f9ca0
Feeds: make RSS valid.
...
Patch provided via c/o tejmar of WPD.
Intended to fix the invalid RSS format which caused issues when
using the feeds with Discord and Telegram.
2022-05-30 04:30:57 -04:00
Snakes
86190e6a29
Rearrange sidebar counter.
...
Also includes moving styles to main.css and reducing font size per
request of Carp.
Additionally: includes the modlog sidebar link that I forgot to stage
with the previous commit.
2022-05-30 04:29:41 -04:00
Snakes
3106823511
Rearrange nav icons, move some to sidebar.
...
After the recent addition of the Lottershe, some narrow phone screens
caused the header to wrap to two lines. Prompted by this, a more
general rework of the header nav icons was initiated.
Notably: random user, random post, all comments has been moved to
sidebar on all sites, and a .sidebar-link CSS class was created to
support it. Additionally, on rDrama, links for Badges and Marseys
were added, since I believe these are presently inaccessible from
the UI. Further, a Modlog link was added to be more accessible.
Additionally, the icons in the header were rearranged on desktop and
mobile to better fit relative priority.
2022-05-30 04:16:03 -04:00
Nekobit
a2cfe4a827
Fix Lottery modal on mobile
2022-05-30 02:58:56 -04:00
outruncolors
4bbe567125
Reintroduce bootstrap title styling ( #294 )
2022-05-30 02:03:41 -04:00
Snakes
80d04b6d9d
assetcache: Add theme CSS support; bust recent.
2022-05-30 01:50:52 -04:00