forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

15949 Commits (05871205751d5b7911e8b51b8307d9975b9c6613)

Author SHA1 Message Date
Aevann1 0587120575 sneed 2022-06-05 07:00:01 +00:00
Aevann1 ec7b53f7a4 sneed 2022-06-05 04:00:02 +00: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
Aevann1 b6059201c0 sneed 2022-06-04 18:00:02 +00:00
Snakes 5fb358a32a Add more TLDs to sanitize. 2022-06-03 17:01:32 -04:00
Aevann1 9939054b4b sneed 2022-06-03 21:00:01 +00:00
Aevann1 81aa543a7f sneed 2022-06-03 14:00:02 +00:00
Snakes 998a8f462e Add links to orphan endpoints. 2022-06-03 06:29:35 -04:00
Aevann1 79fc0110fb sneed 2022-06-03 07:00:02 +00: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
Aevann1 3dc9027f7c sneed 2022-06-03 06:00:02 +00:00
Snakes 843ff51ace Make post rate limit site-specific. 2022-06-02 22:10:59 -04:00
Aevann1 692a9adb99 sneed 2022-06-03 02:00:02 +00:00
Aevann1 0a97bb2fe8 sneed 2022-06-03 01:00:01 +00:00
Aevann1 9956ffcb19 sneed 2022-06-03 00:29:01 +00: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
Aevann1 c839dd5103 sneed 2022-06-02 23:00:01 +00:00
Aevann1 738ab0bb5d sneed 2022-06-02 13:00:02 +00:00
Snakes 2008c09136 Add 'filter' to allowed_styles. 2022-06-02 06:14:20 -04:00
Snakes 71b0022d5c Fix df3127785a9: broke JSON syntax. 2022-06-02 05:28:12 -04:00
Snakes df3127785a Rename 'shit emojis.json' for sanity. 2022-06-02 05:15:41 -04:00
Snakes f799612b66 emoji content: hard wrap json, add 4 more. 2022-06-02 05:13:30 -04:00
Aevann1 e6f05da9c2 sneed 2022-06-02 08:55:47 +00:00
Aevann1 007a1110fb sneed 2022-06-02 08:28:10 +00:00
Aevann1 64e6c91d21 sneed 2022-06-02 08:27:50 +00:00
Snakes 793e580ed3 Move badge_defs SQL from seed-db to sneed.
The recent commit 9168676f78 expanded schema.sql to contain the
badge_defs table contents. Because seed-db.sql was never properly
maintained, I see it as more desirable to have it exported by our
(slightly janky) server auto-commit pipeline.

Additionally, seed-db.sql had badge_defs INSERTs removed.
While working on the file, the bulk `INSERT INTO marseys...` line was
hard-wrapped for clarity and sanity.
2022-06-01 22:38:59 -04:00
Aevann1 9168676f78 sneed 2022-06-02 02:32:38 +00:00
Aevann1 659818c978 sneed 2022-06-02 02:00:02 +00:00
Aevann1 12f51a33cf sneed 2022-06-02 00:38:34 +00: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
Aevann1 ac8f726d88 sneed 2022-05-31 22:00:02 +00:00
Aevann1 d8265bb1db sneed 2022-05-31 21:00:01 +00:00
Aevann1 931582d033 sneed 2022-05-31 20:00:01 +00:00
Aevann1 6c9c1c7c89 sneed 2022-05-31 19:00:01 +00:00
Snakes b63e7c3d36 Cachebust badge images. 2022-05-31 13:07:08 -04:00
Aevann1 e21acd77af sneed 2022-05-31 17:00:01 +00:00