forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

12274 Commits (0a74a98ec5f3520d7a92c6db7ef5236d904e4b83)

Author SHA1 Message Date
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
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
Snakes f9bfb6ddc6 Update birthgay award descs, ricardo price. 2022-05-17 20:04:16 -04:00
Nekobit 86e90efb90 bump (#272)
* q

* Update comments.html
2022-05-17 18:23:44 -04:00
Snakes 1434270975 Cache busting comments_v.js (again). 2022-05-17 17:20:37 -04: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
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 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 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 e0c1e6b4cd sfd 2022-05-16 22:57:47 +02:00
Aevann1 d560caae8d sfd 2022-05-16 22:19:29 +02:00
Aevann1 ed7e4c61c1 fds 2022-05-16 21:42:34 +02:00
Aevann1 19863e8c1a sfd 2022-05-16 21:41:19 +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
Snakes 42e0b77ca7 Add <audio> support to sanitize.py.
Parallels the decisions made with <video>.
2022-05-15 18:47:37 -04:00
Snakes 2a3c70feee Update sidebar: Carp's journo rule. 2022-05-15 14:57:03 -04:00
Aevann1 50b1ed8aa0 fds 2022-05-15 10:45:57 +02:00
Snakes 32416e71fa Fix /stats distinct user count fields.
The COUNT(*) performance optimization in b71ae6cc74 was a bit
overzealous and wound up breaking four fields in /stats intended to
count distinct users who performed certain activities. These fields
were returned to their original implementation.
2022-05-14 17:24:55 -04:00
Aevann1 9df5e30d66 sdf 2022-05-14 19:13:20 +02:00
Aevann1 7278e65362 fds 2022-05-14 16:12:51 +02:00
Aevann1 709e6b75e6 fsd 2022-05-14 16:04:14 +02:00
Aevann1 9df87dc5c6 sf 2022-05-14 15:18:33 +02:00
Aevann1 9dbd9f42e0 fsd 2022-05-14 15:17:57 +02:00
Aevann1 ed0d225554 sfd 2022-05-14 15:11:11 +02:00
Aevann1 caa81452f4 sf 2022-05-13 14:38:14 +02:00
Aevann1 f67860c566 sf 2022-05-13 13:03:44 +02:00
float-trip 9be2264a65 Fix profile CSS on localhost (#260) 2022-05-12 16:21:55 +02:00
Absinthe a829b156d7 #Factcheck Replies (#262)
Replies for #factcheck.
2022-05-12 16:21:20 +02:00
Absinthe c3ae481048 #factcheck (#261)
Like #fortune but to check facts.
2022-05-12 16:21:11 +02:00
Aevann1 3ace8a2606 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-11 19:50:30 +02:00
Aevann1 5efb306822 fds 2022-05-11 19:50:28 +02:00
DrTransmisia 04aefc2462 worst asymptotic behavior (#259)
* ditched the log search in favor of the polynomial search otherwise poor carp can't search for xis boyfriend marseysamhyde querying "hyde" and instead of properly tag it ["sam", "hyde"] I had to ditch the search alg made in the image of G-d

* le new line

* anton-d on all dramaverse
2022-05-11 19:49:27 +02:00
DrTransmisia ba1a5358c8 Bussysussy (#258)
* LE SCHIZOPHRENIC ID HAS ARRIVED :MARSEYCRAZYTROLL:

* other batch of tags
2022-05-11 13:05:32 +02:00
geese-suck 70c61904d9 multi ricardo action 2022-05-10 13:19:55 -04:00
Aevann1 837d90bfa5 fsdgfdfg 2022-05-10 14:14:28 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 09f732d009 sf 2022-05-10 13:40:23 +02:00
Aevann1 3f2eb808b8 fd 2022-05-10 10:07:19 +02:00
Aevann1 db99dd8255 sfd 2022-05-10 09:32:11 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b7a2527be9 dg 2022-05-10 06:09:14 +02:00
Aevann1 5ae124d1ca sfd 2022-05-10 04:14:03 +02:00
Aevann1 82a029ef63 sfd 2022-05-10 03:20:37 +02:00
Aevann1 eb803788e7 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-10 03:12:13 +02:00
Aevann1 5d08b9b96e sdf 2022-05-10 03:12:10 +02:00
DrTransmisia 99eeb3ee4b Bussysussy (#256)
* improved static emojis descriptions and file readability

* perf improv. 2

* some minor tweaks

* final tweaks to js and mobile css

* very final
2022-05-10 02:58:57 +02:00
Aevann1 bfc50ee469 sf 2022-05-09 17:29:44 +02:00
Aevann1 421edf92f4 vxc 2022-05-09 16:44:11 +02:00
Aevann1 8fd2002013 dgf 2022-05-09 16:40:27 +02:00
Aevann1 db2a8236db af 2022-05-09 16:07:29 +02:00
Aevann1 45da8f0f35 sdf 2022-05-09 14:15:23 +02:00
Aevann1 c0461f4554 fdsdf 2022-05-09 14:13:38 +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 5fddfae64c sf 2022-05-09 11:08:26 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
Aevann1 051b35a028 sf 2022-05-09 04:16:28 +02:00
Aevann1 edb39d76f8 sfd 2022-05-09 04:15:32 +02:00
Aevann1 cbb76fff0c dgf 2022-05-09 04:15:15 +02:00
Aevann1 e92aebc7d8 sf 2022-05-09 03:42:03 +02:00
Aevann1 f1458c091f sfd 2022-05-09 03:37:50 +02:00
Aevann1 cf91c32c38 sfd 2022-05-09 03:08:49 +02:00
TLSM 607e5c0171 Fix blackjack doubledown & insure using wrong currency. (#253)
In blackjack, the new double-down and insurance features erroneously
always used coins, even when gambling with mbux.
2022-05-09 01:51:00 +02:00
TLSM c7ba75516b Switch to marsey.cat for Snappy /u/. (#251)
* Switch to marsey.cat for Snappy /u/.

camas is down, replacing it with search.marsey.cat.
Note that when looking for existing Snappy comments to test against,
it appears that something else with Snappy generation is broken.

Ex: /post/66263/-/1876803 puts an entire post URL in the author field.
This commit makes no attempt to fix this. TODO for later.

* Fix Snappy body /u/ extracting author from post URL.

Following up on 1137996f0fe7:
Issue was that author was being extracted from post.url, not href.
Given that the relevant code section is specifically for /u/s in the
body text of the submission, this was a problem.
2022-05-09 01:50:39 +02:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00