Commit Graph

12248 Commits (a3683099ffce223d575dd4005f2653b8c4e9ef26)

Author SHA1 Message Date
Aevann1 b9316c0073 fsd 2022-05-21 15:19:02 +02:00
Aevann1 cad9952f2b Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-21 14:36:24 +02:00
Aevann1 20cc20d806 fsd 2022-05-21 14:36:22 +02:00
Snakes 3d9c302fae Blackjack: add five card charlie rule. 2022-05-20 23:08:20 -04:00
Snakes 6fbaf2f15f Partially revert: cb1bb4e43b, 2737a6ca47.
cb1bb4e43b40: Server cleaned out schema.sql for some reason and
it was autocommitted by the sneed cron. This is why the tests fail.

2737a6ca479b: Originally pulled from themotte/rDrama @ 309bf44f12ba.
In light of the fact this is breaking comment previews right now and
the actual XSS threat is unclear, given we sanitize serverside,
this is reverted until I find time to look at it.
2022-05-20 19:15:44 -04:00
Snakes 9a23c195ed Fix overpermissive email regex. 2022-05-20 18:49:00 -04:00
Aevann1 2737a6ca47 sfd 2022-05-20 23:41:08 +02:00
Snakes 76fd1342f3 Fix @mention replacement.
Comments of the style e.g. "@TLSM / @TLSM2" would mistakenly be
`sanitize`d to have identical links only on "@TLSM", the latter
instance having a dangling 2 on the end. It seems this is purely an
issue with text formatting; alerts.py @ NOTIF_USERS had no such
issues. The root cause appears to be partly an optimization and
partly the use of str.replace without a count limit.
2022-05-20 17:04:36 -04:00
Aevann1 2cfd7c74a0 fds 2022-05-20 21:00:13 +02:00
Aevann1 aed84df4ad fsd 2022-05-20 20:45:12 +02:00
Aevann1 4f9df8c5bf sdf 2022-05-20 20:32:36 +02:00
Aevann1 301f134309 fds 2022-05-20 18:02:27 +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 4a6545ef5d dfsfds 2022-05-20 16:39:46 +02:00
Aevann1 40dce26a65 Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging 2022-05-20 16:17:11 +02:00
Aevann1 eead5570e5 fsd 2022-05-20 16:17:09 +02:00
Snakes 16e3d3b3e9 Disable tilts on distinguished posts. 2022-05-19 22:27:51 -04:00
Snakes 97bfdc5d3e Improve readability on header birthgay bg. 2022-05-19 19:15:49 -04:00
Aevann1 8a54215464 Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging 2022-05-20 00:56:55 +02:00
Aevann1 5548160912 fsd 2022-05-20 00:56:53 +02:00
Snakes ee8c54a8d4 Replace journoid w b-day message, h/t @nekobbbbbbit 2022-05-19 18:48:55 -04:00
Aevann1 f4d5998e80 fsd 2022-05-20 00:38:03 +02:00
Snakes b7594e2cd2 Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 18:32:17 -04:00
Nekobit 568e32fff5 Birthday Navbar (#276)
* q

* Update comments.html

* Update comments_v.js

* Baloons.webp

* Birthday bash
2022-05-20 00:31:40 +02:00
Aevann1 0eb39b987c 2022-05-20 00:24:34 +02:00
Aevann1 85bf0ab866 sfd 2022-05-20 00:10:02 +02:00
Aevann1 b3740dca14 gf 2022-05-20 00:00:24 +02:00
Snakes c789f6923e Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 17:59:35 -04:00
Snakes 039991dd43 Add birthgay event banner assets, template change. 2022-05-19 17:26:22 -04:00
Snakes 5e85f34d3c Double XP enabled: actual launch timestamp. 2022-05-19 17:22:55 -04:00
Snakes b09cad1a84 Swap header icon to :marseyparty:. 2022-05-19 17:16:07 -04:00
Snakes 39c354c3fd Enable DXP at 2022-05-19 2200Z. 2022-05-19 17:15:39 -04:00
Aevann1 db3ed7961f idk 2022-05-19 20:36:26 +02:00
Aevann1 e511737702 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-19 19:58:22 +02:00
Aevann1 3e2af45a59 fds 2022-05-19 19:58:18 +02:00
Snakes ad328ff2d8 Award modal: flairlock note length limit in UI.
The award modal note field had a maxLength of 200 characters.
This was retained when repurposing the field for the new flair to be
applied by a flairlock award. However, flairs have a maxLength of 100
characters. award_modal.js now makes this clearer in the UI by
changing the maxLength of note when a flairlock award is picked.
2022-05-19 13:56:04 -04:00
Snakes 69dec16f55 Shop badge discount: fix Spender, add Roller disc.
The shop discount from Big Spender badges was incorrectly implemented:
intended behavior was for 2pp per badge. However, the values in
const.py were set as if a user could only have one Spender badge at
once, while user.py @ discount was implemented as if they were
additive. Since users factually do have multiple big spender badges,
the values in const were adjusted to reflect this fact.

Also, lootbox Roller badges now each offer a 1pp discount.
users.py @ discount was improved to check against the `discounts`
keys for appropriate badges, rather than a hardcoded list.
2022-05-19 13:41:04 -04:00
Snakes 0608e0ce9d Media folder: create, add birthgay, move crab. 2022-05-19 13:09:19 -04:00
Aevann1 44cd7f4a92 fds 2022-05-19 09:49:15 +02:00
Aevann1 f6cf02b210 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-19 09:44:46 +02:00
Aevann1 371c7375c8 fds 2022-05-19 09:44:43 +02:00
Snakes 5500bd4e03 Polls formatting help, minor revision. 2022-05-18 18:04:17 -04:00
Snakes 9ef2d95874 Expand formatting help on polls. 2022-05-18 17:41:01 -04:00
Snakes 289a00c302 Lootboxes: remove notification to Carp. 2022-05-18 17:33:40 -04:00
Aevann1 ef0046f091 fsd 2022-05-18 21:29:07 +02:00
Aevann1 3354363261 dfs 2022-05-18 21:04:06 +02:00
Aevann1 1874c3ffbc Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-18 20:45:05 +02:00
Aevann1 15f0b963c7 fc 2022-05-18 20:45:04 +02:00
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