Commit Graph

12569 Commits (934b6317304fc2bbf17289a3a93ca6e8ef370247)

Author SHA1 Message Date
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
Snakes b63e7c3d36 Cachebust badge images. 2022-05-31 13:07:08 -04:00
Snakes 5d56e71cc9 Rate limiter: fix 81e2a5a for logged-out. 2022-05-30 23:50:56 -04:00
Snakes 4ba2098612 Rate limiter: whitelist admins.
Due to presently hitting perpetual 429s after a mishap with lottery
polling on production, among past events where admins have gotten
rate-limited for doing otherwise normal admin behavior, the
flask_limiter.Limiter now has a request filter to whitelist JL2+.
Despite running on every request, I don't anticipate this undermining
the DoS prevention power of the Limiter.

It is yet unknown whether there are edge cases where running
get_logged_in_user in a different spot in the request pipeline might
e.g. subtly break the logged-in counters. This is not expected at
present, however.
2022-05-30 23:01:18 -04:00
Snakes c73f97c183 Finalize assets for lottery page. 2022-05-30 22:44:32 -04:00
outruncolors c2f598a17f Move lottery to own page (#296) 2022-05-30 22:40:38 -04:00
Snakes b85f23becb assetcache: Bust 2dda7529a4, expand. 2022-05-30 20:20:14 -04:00
outruncolors 2dda7529a4 Minor styling changes (#295) 2022-05-30 20:13:25 -04:00
Snakes 04a878a8c4 Make betting polls respect can_gamble. 2022-05-30 08:13:11 -04:00
Snakes e32a4bda48 Add set/unset nsfw on comment to modlog. 2022-05-30 08:00:16 -04:00
Snakes 75758dd511 Feeds: make RSS valid, part trois.
Hopefully finishes the RSS fix saga. This one done in-house rather
than by patch, as 5d6d4f9ca0 and 29fdc774a9 had been.

This final change ensures the <updated> tag is always used, even
for un-edited posts. This appears to pass the W3C Validator using
local test data. We shall see how it behaves with data on prod.
2022-05-30 07:27:52 -04:00
Aevann1 ddc4fe756e Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-30 13:07:35 +02:00
Aevann1 d1eda8c28c fixing https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2021592?context=8#context 2022-05-30 13:07:03 +02:00
Snakes 29fdc774a9 Feeds: make valid, part deux.
Continuation of 5d6d4f9ca0. Again, h/t to our friends at WPD
for providing a patch.
2022-05-30 06:58:42 -04:00
Snakes b3604cca9f Remove chat icon from mobile header.
3106823511 added a chat icon to the navbar on mobile. I forgot that
the bottom navbar on mobile already had one. It has therefore been
removed, thus totally alleviating issues with wrapping when a user
is both an admin and has a high notification count.
2022-05-30 06:31:07 -04:00
Snakes 81e19b1aed Add can_gamble user setting.
Users now have a toggleable can_gamble setting which disables their
ability to use all chance-based gains on the site: viz. slots,
blackjack, the lottery, and treasure chests.

This only applies on invocation of commands that start gambling
games, so it should cause no bugs when toggled with e.g. active
blackjack games.

This was added for the benefit of users with actual problems with
gambling, be they past addiction or religious conviction. All future
gambling features are humbly requested to respect it.
2022-05-30 05:32:45 -04:00
Snakes 470a3c76f5 Cache-bust main.css for d19a73c82. 2022-05-30 04:54:46 -04:00
Snakes 15d2be85f2 Remove delayed color change on voting. 2022-05-30 04:52:33 -04:00
Snakes 5d6d4f9ca0 Feeds: make RSS valid.
Patch provided via c/o tejmar of WPD.
Intended to fix the invalid RSS format which caused issues when
using the feeds with Discord and Telegram.
2022-05-30 04:30:57 -04:00
Snakes 86190e6a29 Rearrange sidebar counter.
Also includes moving styles to main.css and reducing font size per
request of Carp.

Additionally: includes the modlog sidebar link that I forgot to stage
with the previous commit.
2022-05-30 04:29:41 -04:00
Snakes 3106823511 Rearrange nav icons, move some to sidebar.
After the recent addition of the Lottershe, some narrow phone screens
caused the header to wrap to two lines. Prompted by this, a more
general rework of the header nav icons was initiated.

Notably: random user, random post, all comments has been moved to
sidebar on all sites, and a .sidebar-link CSS class was created to
support it. Additionally, on rDrama, links for Badges and Marseys
were added, since I believe these are presently inaccessible from
the UI. Further, a Modlog link was added to be more accessible.

Additionally, the icons in the header were rearranged on desktop and
mobile to better fit relative priority.
2022-05-30 04:16:03 -04:00
Nekobit a2cfe4a827 Fix Lottery modal on mobile 2022-05-30 02:58:56 -04:00
outruncolors 4bbe567125 Reintroduce bootstrap title styling (#294) 2022-05-30 02:03:41 -04:00
Snakes 80d04b6d9d assetcache: Add theme CSS support; bust recent. 2022-05-30 01:50:52 -04:00
outruncolors 0abf890575 Make a few styling changes for mobile lottery modal (#293) 2022-05-30 01:40:55 -04:00
Nekobit b5533c6f4a Design improvements take 2 + Scroll to top (#291)
* fuck u bootstrap

* cleanup

* Improve CSS

* Vote and reply animations

* Fixse

* Fix bugs and add scroll to top thing

* Update themes and sidebar and stuff and such

* Fix mobile arrows

* soy blur

* Fix dramlr or dramalr or tumblr or whatever its called
2022-05-30 01:36:06 -04:00
Snakes 1f4c3ea6b0 Lottery: increase short-term ratelimit. 2022-05-30 00:31:48 -04:00
Snakes cf46b8b3fe Refactor e81edb711d for modularity. 2022-05-30 00:30:10 -04:00
Aevann1 e81edb711d fixed this https://rdrama.net/post/72013/-/2010109?context=8#context 2022-05-30 06:12:51 +02:00
Aevann1 7b2eda1b3c Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-30 05:52:54 +02:00
Aevann1 0cf86e3693 gave large emojis a fixed width and height too 2022-05-30 05:52:51 +02:00
Snakes 5b6ba1ac82 Merge remote-tracking branch 'mccoxmaul/add-lottershe' into frost 2022-05-29 23:52:04 -04:00
Aevann1 c9ec551657 fixed bug with the comment distinguish button on desktop 2022-05-30 05:48:41 +02:00
Aevann1 5745f73f6c removed leftover meme janny shit 2022-05-30 05:40:39 +02:00
Aevann1 de539ab7e5 fixed a bug that caused 500 errors when jannies left the input area for days empty when they chudded someone
also removed some useless code for checking admin status on alts (why did I add this)
2022-05-30 05:30:32 +02:00
Aevann1 e5dbc9bfdd made it so ALL comments on ghosted posts are ghosted too, this includes the hidden poll comments
that way, the poll voters will be hidden and we can have anonymous polls

context: https://rdrama.net/votes?link=t3_2007526
2022-05-30 05:26:52 +02: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
Aevann1 27d81f6506 for rdrama.net, made it so the weekly chart always start before the site got made, and added variable chart width to accomodate that 2022-05-30 05:16:48 +02:00
Outrun Colors, LLC 9f384bf548 Remove extraneous route logic 2022-05-29 22:12:13 -05:00
Outrun Colors, LLC c337d0edde Swap gifs for webms 2022-05-29 22:07:44 -05:00
Aevann1 e52a2e285b added css fallback for garage schizo browsers 2022-05-30 05:02:14 +02:00
Aevann1 b2c011a7ba Give me a notification whenever one of the other jannies removes a post or comment 2022-05-30 05:01:03 +02:00
Outrun Colors, LLC db13e0976c Have tickets show up in treasure chests 2022-05-29 21:59:22 -05:00
Aevann1 aff30db1fe make sure the post/comment for which someone was banned is linked everywhere (for convenience) 2022-05-30 04:55:51 +02:00
Aevann1 79db8254d8 re-added cached banner 2022-05-30 04:33:07 +02:00
Aevann1 3ece35a953 fixed the title on 2 admin pages 2022-05-30 04:22:47 +02: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 ecb4a56047 fixed global variable bug in /stats 2022-05-30 01:01:40 +02:00
Aevann1 08dfef97a3 fixed the icon for "move_hole" mod action 2022-05-29 21:06:51 +02:00
Aevann1 170220e5f4 fds 2022-05-29 20:43:50 +02:00
Aevann1 3e472c74e0 Removed "make admin" on rdrama.net 2022-05-29 20:36:51 +02:00
Aevann1 eafa2a2b0a Revert "Bigly UI improvements (#290)"
This reverts commit c081c2bec2.
2022-05-29 11:13:20 +02:00
Snakes 0a73083e8a Add settings toggle for UI animations. 2022-05-29 03:08:28 -04:00
Outrun Colors, LLC d1f0f7a164 Add foreignkey 2022-05-29 01:18:16 -05:00
Outrun Colors, LLC 562202b38d Reorganize route logic 2022-05-29 01:06:39 -05:00
Outrun Colors, LLC bef0b0ff6d Add participants and field updating 2022-05-29 01:01:45 -05:00
Snakes 0aafd810a2 assetcache: Add dynamic file parameter, apply more.
Assetcache macro improvement: to support assets in folders which are
dynamically referenced by e.g. ID or name, the `asset` macro now
accepts an optional second parameter to be included in the path but
not to be used for versioning the class of assets.

To support recent commits, assetcache now applies for:
  - images/badges/*.webp
  - js/: award_modal.js, bootstrap.js, header.js
2022-05-29 00:52:40 -04:00
Nekobit c081c2bec2 Bigly UI improvements (#290)
* fuck u bootstrap

* cleanup

* Improve CSS

* Vote and reply animations
2022-05-29 00:28:36 -04:00
Outrun Colors, LLC 1a55a7670e Send notifications to winners and losers 2022-05-28 23:23:20 -05:00
Outrun Colors, LLC 469c39dca6 Configure admin section and purchasing a ticket full flow 2022-05-28 22:33:44 -05:00
Outrun Colors, LLC cf7ee615e6 Add skeleton for route interactions 2022-05-28 19:02:35 -05:00
Outrun Colors, LLC 4eb9095ae5 Initial connection of front-end to back-end. 2022-05-28 18:26:30 -05:00
Outrun Colors, LLC bd6d3f4513 Move styling and logic to appropriate files 2022-05-28 17:33:40 -05:00
Outrun Colors, LLC 422ba56b31 Add assets for lottery 2022-05-28 17:24:21 -05:00
Snakes a2e1be3678 Add flavor text back to sidebar counter. 2022-05-28 17:39:49 -04:00
Aevann1 6584919d41 sdf 2022-05-28 22:25:28 +02:00
Aevann1 851eff0f18 sdf 2022-05-28 19:50:48 +02:00
Aevann1 0352f6a626 sfd 2022-05-28 19:35:21 +02:00
Aevann1 709c756660 fds 2022-05-28 16:55:22 +02:00
gooseman 539f9185c8 Update assetcache.html 2022-05-27 22:51:29 -07:00
Snakes 05fc950004 Add support for distinguishing ghosted. 2022-05-28 00:47:33 -04:00
Aevann1 cd2380fb33 fds 2022-05-28 04:20:31 +02:00
Aevann1 b023669b3e sfd 2022-05-28 03:53:14 +02:00
Aevann1 1d0da9df3c sfd 2022-05-28 02:46:44 +02:00
Aevann1 4e5f7935dd dfs 2022-05-28 02:30:07 +02:00
Aevann1 3f04c69cb8 fds 2022-05-28 01:50:33 +02:00
Aevann1 4c112b1edb dsf 2022-05-27 23:31:02 +02:00
Aevann1 a355742049 sfd 2022-05-27 23:28:10 +02:00
Aevann1 3f6cedc606 sfd 2022-05-27 22:31:46 +02:00
Aevann1 8f9ff42050 sfd 2022-05-27 22:26:38 +02:00
Aevann1 20bce86d33 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-27 22:03:25 +02:00
Aevann1 ead4c791a8 sdf 2022-05-27 22:03:23 +02:00
HappyDOGE 9c8c08ecb5 update bootstrap (#287) 2022-05-27 21:40:01 +02:00
Aevann1 fb7eba5aa9 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-27 21:39:33 +02:00
Aevann1 0e1be2f17c fsd 2022-05-27 21:39:31 +02:00
HappyDOGE 12b4ab4bec offline_enabled (#286)
* Added offline service worker (serves a static webpage when no internet connection is present)

* add offline_enabled parameter to manifest
2022-05-27 21:30:29 +02:00
HappyDOGE d6b4c3b166 Added offline service worker (serves a static webpage when no internet connection is present) (#285)
based
2022-05-27 21:23:01 +02:00
Aevann1 6b6e2e8253 sfd 2022-05-27 20:28:54 +02:00
Aevann1 db98b4e140 sfd 2022-05-27 19:19:12 +02:00