forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

15598 Commits (48d75afd3163c36490679f4576e9a62174beb7ce)

Author SHA1 Message Date
Snakes 38680fd38c Fix user popovers failing from early bs_trigger.
Very strange bug, and I hope this fixes it. User popovers, e.g. on
comments pages when names are clicked, spontaneously stopped working
on my local instance. This parallels occasional reports from others
that their popovers stop working for seemingly no reason.

The primary symptom appeared to be in comments+submission_listing.js
@ popclick(...), which became unable to find any `.popover` elements
in the document, resulting in a console error. Running `bs_trigger(
document)` manually in console after page load always fixed this.
As such, I am assuming this is (hopefully) a timing bug from the
bs_trigger call in header.js running before document ready. The call
now runs on a standard document ready callback boilerplate.
May God have mercy on our souls if this doesn't fix it.
I discovered that running `bs_trigger(document)`
2022-05-18 01:46:14 -04:00
Snakes f0c9a354e9 Implement better double XP infrastructure.
Double XP now has a constant for unixtime to start. Logic around
DXP is designed to only apply to votes made after DOUBLE_XP_ENABLED.
This prevents an exploit in the old implementation where spam voting/
unvoting a post made prior to the DXP start could farm 300 DC/hr/alt.
Also it's more maintainable and comports with the coin_delta changes
to prevent self-vote coin changes.
2022-05-18 00:54:05 -04:00
Snakes b51ab09b27 Lootboxes: re-enable for birthgay, improve.
Re-enable lootboxes in const.py, and update their contents in
awards.py. Additionally, improve appearance in shop.

Upon purchasing a lootbox, users now receive a message informing
them of the contents thereof.

Lootbox backend now properly uses CARP_ID (and checks for the
existence thereof correctly).

Also, minor changes to how const.py whitelists awards.
2022-05-17 22:10:04 -04:00
Snakes 8d6e542eaf Fix shop MBux button wrapping to two lines. 2022-05-17 22:07:07 -04:00
Nekobit 63fbc64da5 Read <em> and <strong> as well in reply text (#273)
* q

* Update comments.html

* Update comments_v.js
2022-05-17 21:58:22 -04:00
Snakes f9bfb6ddc6 Update birthgay award descs, ricardo price. 2022-05-17 20:04:16 -04:00
Snakes 67bd2abfd3 Fix ricardo error spam when 0 < n_ricardo < 3.
When ricardo.js was included on a page with ≥1 ricardo but <3
ricardos, the ricardo2 and ricardo3 handlers attempted to modify
non-existent DOM objects. There is now a non-null check before doing
so. Non-null check on ricardo1 isn't strictly necessary; however,
it has been added in case the inclusion of ricardo.js ever is not
conditional on a serverside ricardo quantity check.
2022-05-17 19:30:15 -04:00
Snakes 28e99956c3 Re-enable mobile multi-Ricardo.
By direct request of Carp. Additional testing with a variety of
simulated mobile screen sizes suggests it may not be too overly
crowded.
2022-05-17 19:21:16 -04:00
Nekobit 86e90efb90 bump (#272)
* q

* Update comments.html
2022-05-17 18:23:44 -04:00
Nekobit d2604b6f16 q (#271) 2022-05-17 18:04:56 -04:00
Aevann1 3c8c091b03 fdMerge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-17 21:34:27 +00:00
Snakes 1434270975 Cache busting comments_v.js (again). 2022-05-17 17:20:37 -04:00
DrTransmisia d27cefb87e le execution bit (#269) 2022-05-17 23:19:53 +02:00
Nekobit e43da20741 Image and emoji quote fixes (#268) 2022-05-17 23:15:40 +02:00
Aevann1 e7e37cd657 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-17 23:09:39 +02:00
Aevann1 0b28758e16 stole testing from mottechads 2022-05-17 23:09:36 +02:00
Snakes 9677f505a4 Cache busting comments_v.js. 2022-05-17 17:01:11 -04:00
Aevann1 0cf5181e9c sneed 2022-05-17 21:00:01 +00:00
Nekobit a9a78b0a98 Proper selection quoting (#267) 2022-05-17 22:47:03 +02:00
DrTransmisia d3c404a5f5 CTRL + ENTER TO POST LE NEW COMMENT (#266)
* le shortcut handlers

* le white line as arrived

* Update default.html

Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-05-17 22:44:17 +02:00
Aevann1 d1e6e6a5a0 fsd 2022-05-17 22:01:27 +02:00
Aevann1 c3cce7aaa5 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-17 21:58:43 +02:00
Aevann1 3491c9187d pls review 2022-05-17 21:58:41 +02:00
HappyDOGE e7349aec98 Fix <a> tag link injection, don't throw a ValueError when href attr is missing, properly count marseys (their usage wasn't counted for 20 days :marseygasp:) (#265) 2022-05-17 20:59:07 +02:00
Snakes 9854ed863f Revert word filter * 'escapes'. 2022-05-17 14:34:54 -04:00
Aevann1 a254b13545 sneed 2022-05-17 18:00:02 +00:00
Aevann1 5fdee0c617 sneed 2022-05-17 17:00:02 +00:00
Aevann1 ea7c4f833a fg 2022-05-17 18:53:44 +02:00
Aevann1 c80dcaf706 sfd 2022-05-17 18:16:56 +02:00
Aevann1 0e8a2ad1c8 sdf 2022-05-17 18:03:59 +02:00
Aevann1 2989627489 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-16 22:57:49 +02:00
Aevann1 e0c1e6b4cd sfd 2022-05-16 22:57:47 +02:00
Aevann1 064a3630ca fdMerge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-16 20:19:34 +00:00
Aevann1 d560caae8d sfd 2022-05-16 22:19:29 +02:00
Aevann1 e85309966f sneed 2022-05-16 20:00:02 +00:00
Aevann1 ed7e4c61c1 fds 2022-05-16 21:42:34 +02:00
Aevann1 19863e8c1a sfd 2022-05-16 21:41:19 +02:00
Aevann1 150e2859d9 dsMerge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-16 19:35:39 +00:00
Aevann1 d0f7976690 sneed 2022-05-16 19:00:01 +00:00
gooseman d06c893b66 Update awards.css (#263) 2022-05-16 19:08:07 +02:00
Snakes b0957832e8 Revert "Update sidebar: Carp's journo rule."
This reverts commit 2a3c70feee.
2022-05-16 12:38:13 -04:00
Snakes b6339ca95f Add exact timestamps to mod log.
Modlog only had ModAction.age_string visible. However, we sometimes
need to know the exact time an action was taken.
Adds `created_string` to ModAction, and exposes that to log.html.
2022-05-16 11:33:26 -04:00
Aevann1 ed90c4f87f sneed 2022-05-16 13:00:01 +00:00
Aevann1 f5876eebb0 sneed 2022-05-16 02:00:01 +00:00
Snakes 42e0b77ca7 Add <audio> support to sanitize.py.
Parallels the decisions made with <video>.
2022-05-15 18:47:37 -04:00
Aevann1 ce981649a1 sneed 2022-05-15 22:00:01 +00:00
Snakes 2a3c70feee Update sidebar: Carp's journo rule. 2022-05-15 14:57:03 -04:00
Aevann1 6aac221167 sneed 2022-05-15 09:00:02 +00:00
Aevann1 50b1ed8aa0 fds 2022-05-15 10:45:57 +02:00
Aevann1 1b8d9658ab dfMerge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-15 08:23:53 +00:00