Commit Graph

676 Commits (2398cf45f72a1bd3e7953694c75cd7592464ecf6)

Author SHA1 Message Date
Aevann1 0fb48bc380 make reddit_notifs_jl_min default to be 1 2022-06-16 16:15:24 +02:00
Aevann1 cab92d3c24 add marsey.cat to safe list 2022-06-16 14:36:43 +02:00
Snakes 46520a9f8c Site-specific: change lotto for PCM. 2022-06-15 22:23:21 -04: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 dfe0c64d99 Deduplicate site-specific constants, add SNAKES_ID. 2022-06-14 23:39:37 -04:00
Snakes 3301e238d6 Content: alphabet emoji, christian list. 2022-06-14 14:37:45 -04:00
Aevann1 0f49c8e32f replace spaces with tabs 2022-06-13 20:33:25 +02:00
Aevann1 f4aa70cc74 Revert "Add user title coin cost parameter."
This reverts commit dece3fd460.
2022-06-13 20:10:53 +02:00
Snakes f76b94b58d Content: keywords updates. 2022-06-11 22:08:48 -04:00
Aevann1 831344b723 small image embed improvements 2022-06-11 14:21:59 +02:00
Aevann1 1f42d228c1 remove 'apnic' from word list 2022-06-11 11:27:55 +02:00
Aevann1 654ddc4157 re-refactor normalize_url 2022-06-10 22:02:15 +02:00
Aevann1 36a1797276 escape / in imgur_regex 2022-06-10 21:04:25 +02:00
Aevann1 4910681c6f make the default HOLE_COST 0 (for testing purposes) 2022-06-10 20:14:24 +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
Aevann1 5db4bd1023 made CARP_ID to be 0 on new sites 2022-06-10 16:44:05 +02:00
Aevann1 3e365484fd refactor lottery a little bit + expand it to all of marsey's empire 2022-06-10 15:30:25 +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 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
Snakes dc7f13304e Add following holes for notifications. 2022-06-09 16:24:24 -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 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 dece3fd460 Add user title coin cost parameter. 2022-06-06 19:02:23 -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
Outrun Colors, LLC ef7da60432 Remove new schema changes from file and replace account ids for lottery system 2022-05-29 22:17:31 -05:00
Outrun Colors, LLC b9dc28e6d1 Don't show lotteries on the sister sites 2022-05-29 20:43:16 -05:00
Outrun Colors, LLC a0cc7e1cf6 Move more stuff to proper location 2022-05-29 19:49:14 -05:00
Aevann1 709c756660 fds 2022-05-28 16:55:22 +02:00
Aevann1 cd2380fb33 fds 2022-05-28 04:20:31 +02:00
Aevann1 384afb125a fsd 2022-05-27 17:28:30 +02:00
Snakes 2bde3650d4 Awards: enable lootbox on WPD, refactor AWARDS2 logic. 2022-05-26 22:12:53 -04:00
Aevann1 f72015382a crgd is a king 2022-05-26 22:04:39 +02:00
Aevann1 64c3b489e3 fds 2022-05-26 20:37:10 +02:00
Aevann1 2595706b49 fsd 2022-05-26 20:36:37 +02:00
Aevann1 163267c88c Revert "Add Y'all Seein' Eye award."
This reverts commit a0f441a67d.
2022-05-26 02:51:42 +02:00
Snakes a0f441a67d Add Y'all Seein' Eye award.
Adds award to enable viewing profile visitors for non-mops and
non-patrons. This commit should encompass all frontend, backend, and
database changes necessary. Perhaps usable as a model for other
user upgrade flag awards.
2022-05-25 19:44:34 -04:00
Aevann1 c213451722 fdsfdsxc 2022-05-25 20:44:43 +02:00
Aevann1 386db76c10 crgd is a king 2022-05-25 20:29:22 +02:00
Aevann1 826f137a5e fsd 2022-05-25 02:22:09 +02:00
Snakes 8c3b6cece1 Add 8-ball answers, like fortune & factcheck. 2022-05-24 19:08:41 -04:00
Aevann1 6631777f76 fds 2022-05-24 22:45:34 +02:00
Aevann1 bbd851210e fds 2022-05-24 17:32:49 +02:00
Aevann1 dcf1c794cc fds 2022-05-24 04:48:50 +02:00
Aevann1 c5413e9e53 sdf 2022-05-23 17:28:23 +02:00
Snakes cc75375c82 Un-deploy Birthgay event.
Removes temporary changes for the Birthgay 2022 event, ending
approximately at 2022-05-23 0600Z. Changes:
 - Double XP disabled.
 - Lootboxes disabled.
 - Three event awards given real descriptions and colors.
 - Partyhats: restored to cakeday-only condition and tooltip.
 - Header UI: balloons removed, text visibility outline removed,
   journoid banner reverted, marseyjam as header icon.
 - Birthgay banners: removed from template, moved to new storage dir.

Confetti, though remaining as a permanent award, has been temporarily
removed pending a less performance-intensive implementation and one
that doesn't require maintaining a third-party package in the codebase.
2022-05-23 01:48:25 -04:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02: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
Aevann1 4a6545ef5d dfsfds 2022-05-20 16:39:46 +02:00
Aevann1 eead5570e5 fsd 2022-05-20 16:17:09 +02:00
Snakes c789f6923e Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 17:59:35 -04:00
Snakes 5e85f34d3c Double XP enabled: actual launch timestamp. 2022-05-19 17:22:55 -04:00
Snakes 39c354c3fd Enable DXP at 2022-05-19 2200Z. 2022-05-19 17:15:39 -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
Aevann1 15f0b963c7 fc 2022-05-18 20:45:04 +02: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 f9bfb6ddc6 Update birthgay award descs, ricardo price. 2022-05-17 20:04:16 -04: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 e0c1e6b4cd sfd 2022-05-16 22:57:47 +02:00
Absinthe a829b156d7 #Factcheck Replies (#262)
Replies for #factcheck.
2022-05-12 16:21:20 +02:00
DrTransmisia ba1a5358c8 Bussysussy (#258)
* LE SCHIZOPHRENIC ID HAS ARRIVED :MARSEYCRAZYTROLL:

* other batch of tags
2022-05-11 13:05:32 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b71ae6cc74 sf 2022-05-09 13:21:49 +02:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00
Aevann1 1b86af8def fg 2022-05-07 07:28:51 +02:00
Aevann1 f2039d7713 sfd 2022-05-07 06:13:19 +02:00
Aevann1 f876092e9e dg 2022-05-06 01:45:41 +02:00
Aevann1 22c2e1240e jh 2022-05-06 01:44:30 +02:00
Aevann1 bb43be278b dg 2022-05-05 23:49:27 +02:00
TLSM 1137d56de7 Disable chudtexting in quotes. (#245)
Chose to split text into lines because Python regex supports neither
variable-width nor infinite-width negative lookbehinds. This precludes
a simple pure regex solution. Since all replacements are done at the
word level, this has no obvious ill effects.
2022-05-05 22:47:13 +02:00
TLSM 110278d87f Add typekit to approved hosts. (#243) 2022-05-05 09:57:34 +02:00
carpathianflorist 902a8fa7e3 minor word filter update 2022-05-05 00:19:59 -04:00
geese 02928305ed aaa 2022-05-04 21:29:59 -04:00
Aevann1 024e5770af fsd 2022-05-04 22:51:56 +02:00
Aevann1 53702d5f13 dup 2022-05-04 05:14:14 +02:00
Aevann1 572b8bcf65 jk 2022-05-03 21:07:57 +02:00
Aevann1 bb33eaf54b sfd 2022-05-02 22:02:22 +02:00
Aevann1 df90e71f20 fsd 2022-05-02 21:30:12 +02:00
Aevann1 5eb6491e25 fgd\ 2022-05-02 07:06:43 +02:00
Aevann1 2d4cf226e4 fds 2022-04-29 16:52:00 +02:00
Aevann1 d0116ff2f8 sfd 2022-04-28 01:16:24 +02:00
float-trip d85951d912 add :@userpat: emojis (#231)
* refactor emoji formatting

* add user patting
2022-04-27 16:46:47 +02:00
Aevann1 2f04364f5b fd 2022-04-26 15:15:01 +02:00
Aevann1 adf6d4bfee sdf 2022-04-26 01:03:07 +02:00
Aevann1 ccff08057a sfd 2022-04-26 01:00:55 +02:00
Aevann1 5c21180705 Revert "vxc"
This reverts commit 4d0c7ba456.
2022-04-25 23:59:12 +02:00
Aevann1 4d0c7ba456 vxc 2022-04-25 18:38:06 +02:00
Aevann1 ddbafe7d78 vcx 2022-04-25 17:48:36 +02:00
Aevann1 b554065c49 vcx 2022-04-24 19:30:05 +02:00
Aevann1 457a717075 fds 2022-04-24 00:09:25 +02:00
Aevann1 ba503e600f fds 2022-04-23 00:53:24 +02:00
Aevann1 37ecda7872 fds 2022-04-23 00:52:49 +02:00
Aevann1 e384356b33 fsd 2022-04-22 21:41:37 +02:00
Aevann1 e391ef7a29 fds 2022-04-22 21:22:11 +02:00
Aevann1 f6d5fca338 fds 2022-04-22 20:32:11 +02:00
Aevann1 4460fdf5e4 fds 2022-04-22 19:38:55 +02:00
Aevann1 d15d7c7d93 fds 2022-04-22 18:06:34 +02:00
Aevann1 e3b00f6c89 fsd 2022-04-22 17:17:10 +02:00
Aevann1 f50fa03958 fsd 2022-04-22 16:36:46 +02:00
Aevann1 5c842fdb2a sfd 2022-04-22 16:20:03 +02:00
Aevann1 5cf645f329 fds 2022-04-22 16:19:27 +02:00
Aevann1 f30b97d513 fds 2022-04-22 16:15:17 +02:00
Aevann1 ac4da7516d fsdfds 2022-04-22 15:23:56 +02:00
Aevann1 1ec4f1375d fds 2022-04-21 00:56:16 +02:00
Aevann1 88f9ac8aed fds 2022-04-21 00:55:05 +02:00
Aevann1 ca268c1ac5 fds 2022-04-20 15:55:48 +02:00
Aevann1 5be791e21d dfs 2022-04-20 00:17:50 +02:00
Aevann1 aa498d89c7 gfd 2022-04-19 21:13:36 +02:00
Aevann1 89f336a3bf sdf 2022-04-19 20:29:08 +02:00
Aevann1 0e74b54424 fsd 2022-04-18 20:25:14 +02:00
Aevann1 d7fa942d85 fds 2022-04-18 18:01:03 +02:00
Aevann1 743215e2d0 fds 2022-04-18 15:46:45 +02:00
Aevann1 69d285b0f3 fds 2022-04-18 01:00:17 +02:00
Aevann1 c7d3401b62 fds 2022-04-18 00:47:30 +02:00
Aevann1 ad0c050cc3 fdsfd 2022-04-18 00:31:39 +02:00
Aevann1 8214e2c6f9 fds 2022-04-18 00:13:37 +02:00
Aevann1 d91cb91e07 fsd 2022-04-17 23:59:30 +02:00
Aevann1 a8bff09b9e fds 2022-04-17 23:59:05 +02:00
Aevann1 15f5216c40 dfsfsd 2022-04-17 23:52:36 +02:00
Aevann1 9c0441aef9 fsd 2022-04-17 23:46:29 +02:00
Aevann1 e06cc3c382 fsd 2022-04-17 23:10:56 +02:00
Aevann1 0fafdc16ff fds 2022-04-17 23:10:21 +02:00
Aevann1 78ea56837f fds 2022-04-17 22:20:40 +02:00
Aevann1 0b69ed8cb6 fds 2022-04-17 17:32:56 +02:00
Aevann1 a77ff6582d fsd 2022-04-17 17:31:09 +02:00
Aevann1 c527eb03d1 fds 2022-04-17 15:22:55 +02:00
Aevann1 3eb53f4d07 fds 2022-04-17 00:43:50 +02:00
Aevann1 39c374a90d fds 2022-04-17 00:42:12 +02:00
Aevann1 5c7c876218 dfs 2022-04-16 22:16:09 +02:00
Aevann1 2513fedeb0 fsd 2022-04-16 17:15:10 +02:00
Aevann1 c6230e5f50 fsd 2022-04-16 16:58:07 +02:00
Aevann1 78530d6d17 fds 2022-04-16 01:06:13 +02:00
Aevann1 a1d7849798 fds 2022-04-15 17:35:11 +02:00
Aevann1 c0c0b3a134 fsd 2022-04-10 18:27:27 +02:00
Aevann1 e6c0044d35 fart 2022-04-10 02:37:45 +02:00
Aevann1 15a02cf3cd fds 2022-04-10 01:07:03 +02:00
Aevann1 ef8068e644 fsd 2022-04-09 18:52:25 +02:00
Aevann1 77175051ac gd 2022-04-07 01:50:32 +02:00
Aevann1 496858a216 fds 2022-04-06 23:21:07 +02:00
Aevann1 ee84c0a796 2022-04-06 21:55:12 +02:00
Aevann1 9a75ddee97 dogecore 2022-04-05 17:50:56 +02:00
Aevann1 37e4d9e848 fds 2022-04-05 01:38:05 +02:00
Aevann1 bd712dabfe fgd 2022-04-04 22:05:10 +02:00
Aevann1 c26091c9cc I have no idea what I'm doing 2022-04-04 19:23:35 +02:00
Aevann1 a60a061cc9 doecore 2022-04-04 12:23:31 +02:00
Aevann1 8baefa2572 fsd 2022-04-03 18:08:54 +02:00
Aevann1 7713fd891d fsd 2022-04-02 19:11:35 +02:00
Aevann1 ae82ada424 fsd 2022-04-02 18:54:27 +02:00
Aevann1 6b58661855 tabs 2022-04-01 20:38:31 +02:00
Aevann1 3541bd8654 fsd 2022-04-01 15:17:46 +02:00
Aevann1 a4e955c27c sfd 2022-03-31 22:01:46 +02:00
Aevann1 a30ccc8af5 fds 2022-03-27 20:42:02 +02:00
Aevann1 467c3f45cf dg 2022-03-27 16:49:44 +02:00
Aevann1 fef1a41dca gfd 2022-03-27 16:34:56 +02:00
Aevann1 e0c52afc08 rwe 2022-03-27 16:15:41 +02:00
Aevann1 f1183dca36 fsd 2022-03-26 20:15:25 +02:00
Aevann1 e1db64f34a c 2022-03-26 13:36:25 +02:00
Aevann1 7745adc475 fd 2022-03-24 23:01:04 +02:00
Aevann1 eec1738d01 what a mess 2022-03-24 21:44:12 +02:00
DramaticParagon ccdf31fdc6 Update const.py (#224) 2022-03-23 20:01:43 -07:00
Aevann1 532342a914 vc 2022-03-24 01:28:48 +02:00
Aevann1 de577db8fe gf 2022-03-24 00:57:31 +02:00
Aevann1 a6a07f8143 delfector 2 2022-03-24 00:49:18 +02:00
Aevann1 6fc9de8278 deflector award 2022-03-24 00:42:33 +02:00
Aevann1 b31ffc6de6 far 2022-03-23 18:01:10 +02:00
Aevann1 65951634aa dsa 2022-03-22 02:12:24 +02:00
Aevann1 5d8dde0ff9 vxc' 2022-03-21 22:21:22 +02:00
Aevann1 a8283f12ba c 2022-03-19 20:39:32 +02:00
Aevann1 549c9ba394 arrr 2022-03-19 20:12:14 +02:00
Aevann1 0c5435e04f sfd 2022-03-18 20:31:24 +02:00
Aevann1 329f34a6e6 pizza 2022-03-17 18:12:59 +02:00
Aevann1 de6cebe659 aw 2022-03-17 10:59:44 +02:00
Aevann1 b9c8a330b2 Update const.py 2022-03-11 00:38:13 +02:00
Aevann1 0bf1f32a22 dfs 2022-03-09 05:02:42 +02:00
Aevann1 ac0f3da214 dfs 2022-03-09 05:01:59 +02:00
Aevann1 5472791617 sdf 2022-03-09 05:01:41 +02:00
Aevann1 490bd93ef9 gd 2022-03-09 05:00:50 +02:00
Aevann1 b99de4e936 fds 2022-03-09 04:26:05 +02:00
Aevann1 b39e51082c ghost 2022-03-09 03:49:57 +02:00
Aevann1 514d6ec126 right 2022-03-09 03:44:53 +02:00
Aevann1 acd3843632 fixed king 2022-03-06 21:03:50 +02:00
Aevann1 af801c395a sfd 2022-03-06 20:27:43 +02:00
Aevann1 1435fe0df9 fd 2022-03-05 23:42:58 +02:00
Aevann1 61e7bf32df yikes sweety 2022-03-05 05:22:38 +02:00
Aevann1 aab7646c10 fixed 2022-03-05 05:01:19 +02:00
Aevann1 349be1e5a5 jann janny 2022-03-05 03:56:06 +02:00
Aevann1 6a8209872a slur 2022-03-05 03:55:40 +02:00