Commit Graph

1223 Commits (24c298f329633adfa4d45d1a472688790172188b)

Author SHA1 Message Date
Aevann1 4791e7b14b revert icon change 2022-09-08 19:24:00 +02:00
Aevann1 e9445efc22 make bootstrap work on localhost 2022-09-08 19:12:46 +02:00
Aevann1 f4e4ff3839 comsetic shit 2022-09-08 17:38:27 +02:00
Aevann1 bc2d1fb53f disable save_edit button on click 2022-09-07 03:13:28 +02:00
Aevann1 b2d134fa6c update glowing hat 2022-09-06 23:15:35 +02:00
Aevann1 10650aaa44 fix rainbow on post titles that link to shit 2022-09-06 06:26:36 +02:00
Aevann1 8d5a358ac5 fix 2022-09-06 06:23:15 +02:00
Aevann1 d0cfd8a8c1 change house femboy award 2022-09-06 06:16:41 +02:00
Aevann1 73dbb2dd7e change t2_ and t3_ to p_ and c_ 2022-09-06 00:52:22 +02:00
Aevann1 b3a56ca168 more hat shit 2022-09-05 06:33:08 +02:00
Aevann1 34c6842018 make the tooltip be "hat - description" 2022-09-05 05:55:41 +02:00
Aevann1 970cf6dccd update Sparkles and Emo Hair II 2022-09-05 03:58:05 +02:00
Aevann1 71b5367874 cachebust all css and js 2022-09-05 01:50:43 +02:00
Aevann1 0c32d56cd6 casino + style shit 2022-09-05 01:15:37 +02:00
Aevann1 7a3a1a883c update nervous sweating hat 2022-09-04 20:59:50 +02:00
Aevann1 5feb479cd2 apply slur filter to hat descriptions 2022-09-03 20:55:03 +02:00
Aevann1 a0579b40e0 restore metadata for audio 2022-09-03 05:39:35 +02:00
Aevann1 28dbe0d6ab fix WPD slowness 2022-09-03 05:34:06 +02:00
Aevann1 0839077838 fix pup mask 2022-09-03 04:48:27 +02:00
Aevann1 8f5e4c3ec6 add .hat class for easier blocking 2022-09-03 03:52:54 +02:00
Aevann1 88a2c69659
Hats (#348)
* hat

* hats

* hats 2

* hats

* hats 4

* hats 5

* hats
2022-09-03 01:58:55 +02:00
Aevann1 a1a84670a0 fix issue with deleted and removed posts 2022-09-02 19:03:00 +02:00
Aevann1 523bfd93c5 show first frame of video 2022-09-01 22:43:11 +02:00
Snakes 6acf4ff569
WPD: disable cosmetic awards on distinguished posts. 2022-08-30 23:18:59 -04:00
Aevann1 5f7df3fe66 fix minor weird shit in voting js logic 2022-08-30 23:45:52 +02:00
Aevann1 5363cbd721 remove weird spaces 2022-08-30 23:44:04 +02:00
Aevann1 dbd11ad061 tweak "view source" boxes 2022-08-30 07:37:11 +02:00
Snakes 2b4c2a2022
Disable glowie award effect on distinguished posts. 2022-08-29 11:48:29 -04:00
Aevann1 0f11312d24 add house awards 2022-08-27 04:57:19 +02:00
Aevann1 b191f426d0 dumb cosmetic change for myself 2022-08-26 00:36:47 +02:00
Aevann1 9032e23182 add patron icons for WPD 2022-08-25 22:34:05 +02:00
Aevann1 c5966d3c70 fix margin 2022-08-25 00:39:14 +02:00
Aevann1 604c2583af make clicking on the image inside posts expands it 2022-08-24 18:43:08 +02:00
Aevann1 a88b9d59c4 rename /h/chudtopia to /h/chudrama 2022-08-20 00:20:25 +02:00
Aevann1 4a8220d687 make chudtopians immune to chud effects 2022-08-20 00:12:53 +02:00
Aevann1 d4435a2a27 lazy loading for hats 2022-08-18 22:29:00 +02:00
Snakes 26b12fcbf1
Fix long domains overflowing submission_listing. 2022-08-17 01:33:10 -04:00
Aevann1 32e8f68ef5 show post links on desktop too 2022-08-16 18:05:16 +02:00
Aevann1 6e202bd995 allow iosfags to download audio 2022-08-15 15:20:37 +02:00
Aevann1 26bbc8b69a perserve the first 4 checkboxes in /submit too 2022-08-15 08:42:59 +02:00
Aevann1 9dac94cf8e make previous commit better 2022-08-15 08:22:10 +02:00
Aevann1 b010c4b228 fix previous commit 2022-08-15 08:21:08 +02:00
Aevann1 6f2fed7aa5 make downloading videos possible for iosfags 2022-08-15 08:17:19 +02:00
Aevann1 16f949e38d pure rage 2022-08-11 15:09:39 +02:00
Aevann1 f563d6b932 fix https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2402363?context=8#context 2022-08-11 13:39:38 +02:00
Snakes 249c593379 Hats: frontend interface, migrate cakeday.
Getting the basic hats frontend changes into master so my branch stops
diverging from the templates. Migrates the existing cakeday partyhat
functionality to the new system also.

Establishes a (hopefully) static interface for PFP hat display:
  - Hat image assets are 100px w x 130px h and anchored to the bottom-
    left corner of pfps.
  - User.hat_active provides either empty string or the internal
    string identifier for active user hat.
  - User.hat_tooltip provides mouseover text. Likely only to be used
    for cakeday hats on one's cakeday.

Additionally, per discussion with Carp, PFPs in comments and posts
increased from 25px diameter to 30px.
2022-08-11 03:30:43 -04:00
Snakes 1411018f8d Add post categories.
Implemented for LGB but can likely be used for WPD and other future
sites. Similar to a reddit post flair. Provides:
  - Admin panel for Category management.
  - Category selection on post submission.
  - 'Recategorize' post action.
2022-08-07 02:57:30 -04:00
Aevann1 db10272e1b delete contents of preview when submitting comments 2022-07-23 11:19:47 +02:00
Aevann1 f543abaaab fix 46786e117b 2022-07-23 11:08:02 +02:00
Aevann1 a4444c9402 make form a const 2022-07-23 10:57:53 +02:00
Aevann1 46786e117b allow ppl to make multiple comments to the same parents without reloading the page 2022-07-23 10:53:17 +02:00
Snakes 0c43deeee6
FEATURES: pronouns, kys, chat, house, /vote perm. 2022-07-18 02:43:20 -04:00
Nekobit bde47271d7
Allow Inline Emoji modal in more areas (#318)
* Sneed

* Bust cache
2022-07-17 07:42:03 +02:00
Nekobit 4b47faa1ed
Inline Emojo Picker (#317)
* Inline emoji picker

* Inline text editor
2022-07-17 07:02:22 +02:00
Aevann1 aacaf50928 change pronoun design 2022-07-15 22:21:42 +02:00
Aevann1 2d21863e19 replace "request.host" with "SITE" 2022-07-13 20:14:37 +02:00
Aevann1 093c83d7c9 tweaking bannedfor column 2022-07-12 22:00:19 +02:00
Aevann1 ee11a28636 fix flag filtering 2022-07-11 20:13:00 +02:00
Aevann1 20a659da73 hide reports made by shadowbanned niggas 2022-07-11 20:04:35 +02:00
Aevann1 6428dd08c5 add pronouns 2022-07-11 18:46:08 +02:00
Aevann1 3238a78eb1 fix confetti award 2022-07-09 10:42:09 +02:00
Aevann1 382df30e1f show ALL timestamps in user's timezone + move scripts to the bottom of HTML templates to mimic rocketloader's behavior on localhost (for testing) 2022-07-09 10:35:47 +02:00
Aevann1 14d2845f93 Revert "Disable fartmode on non-rDrama sites."
This reverts commit da27b16c39.
2022-07-08 20:10:42 +02:00
Aevann1 b617321529 move all env-getting to .const 2022-07-08 18:21:13 +02:00
Snakes 6ad935e12a Permission flags UI visibility; start PERMS dict.
Original work started for WPD and LGB, who wish to restrict flags
visibility in the UI based on admin_level. To support this change and
upcoming changes, `const.PERMS: string -> int` was created.
Potentially targetting a future design where Permissions is a proper
business object integrated with the User model; however, for now just
looking toward getting admin_level magic numbers centralized.

This commit applies PERMS to: create_hole, flags visibility in UI,
flag removal in UI & backend. Flag visibility in Comment & Submission
json_raw methods is unaffected to avoid needing a user object to
build the JSON.
2022-07-06 23:45:33 -04:00
Aevann1 4ccead8439 Revert "refactor "view more comments""
This reverts commit 68da93ec02.
2022-07-04 05:37:48 +02:00
Aevann1 d517baebdc Revert "make "view more" button neater"
This reverts commit cae656186a.
2022-07-04 05:35:10 +02:00
Aevann1 b55d17859e Revert "make the timeout 2 seconds for the button"
This reverts commit c222d36366.
2022-07-04 05:35:00 +02:00
Aevann1 c222d36366 make the timeout 2 seconds for the button 2022-07-03 12:15:55 +02:00
Aevann1 cae656186a make "view more" button neater 2022-07-03 12:15:15 +02:00
Aevann1 57e424af5b revert the "defer" thing 2022-07-03 12:10:04 +02:00
Aevann1 dc675fb23f fix showing new comments 2022-07-03 12:09:00 +02:00
Aevann1 68da93ec02 refactor "view more comments" 2022-07-03 11:11:18 +02:00
Aevann1 a49325ba14 defer all scripts (this won't change anything for us since we use rocketloader, but it will fix javascript on localhost) 2022-07-03 09:42:33 +02:00
Aevann1 3245656787 show timestamps in the user timezone 2022-07-03 09:41:25 +02:00
Aevann1 b26839a616 cachebust fireworks.js 2022-07-02 03:18:01 +02:00
Aevann1 f56be06eb8 add hole pinning 2022-07-02 01:11:48 +02:00
Snakes 1b9237ceaf Add assetcache.asset_siteimg, has_logo.
Commit began by changing the duplicated SITE_NAME conditional in the
header to use a `has_logo` param, much like the recent `has_sidebar`.
From there, a need to include site-specific assets in assetcache was
revealed, adding the `asset_siteimg(...)` macro. This was applied
quite broadly, though not comprehensively.
2022-07-01 01:55:53 -04:00
Aevann1 070945d98a cut down on the number of queries 2022-06-29 09:22:18 +02:00
Aevann1 5661cdb271 Revert "try to cut down on number of db queries"
This reverts commit c674c6a056.
2022-06-29 08:43:20 +02:00
Aevann1 c674c6a056 try to cut down on number of db queries 2022-06-29 08:14:25 +02:00
Aevann1 aac17a6daa show the username of the janny who banned 2022-06-28 02:59:08 +02:00
Aevann1 4fae28a2a2 fix child comment highlighting 2022-06-28 02:41:25 +02:00
Aevann1 6bd4efa61f Revert "make small text less small"
This reverts commit 42b0f37034.
2022-06-27 04:33:38 +02:00
Aevann1 42b0f37034 make small text less small 2022-06-27 04:18:14 +02:00
Aevann1 b1ef8e4c62 add poorcel mode 2022-06-27 04:14:53 +02:00
Aevann1 8e73d7aaad remove checking for device RAM 2022-06-26 23:48:39 +02:00
Snakes 268c23e2f8 WPD: make holes more flair-like in UI. 2022-06-26 03:42:15 -04:00
Aevann1 3b8188fd67 fixed version of d83d47e280 2022-06-26 03:22:05 +02:00
Aevann1 a1b137447e Revert "reduce query volume #1"
This reverts commit d83d47e280.
2022-06-26 03:12:31 +02:00
Aevann1 d83d47e280 reduce query volume #1 2022-06-26 02:50:47 +02:00
Aevann1 bc7185b5af order awards by the time they were awarded 2022-06-25 22:33:51 +02:00
Aevann1 905e32c60c remove the javascript block i used for testing 2022-06-25 19:29:34 +02:00
Aevann1 5d777a07b0 cache bust 2022-06-25 17:36:35 +02:00
Aevann1 1abcbecf19 fix RAM shit 2022-06-25 17:33:46 +02:00
Aevann1 66586dfce3 testing RAM thing 2022-06-25 17:20:34 +02:00
Aevann1 e4c50939e6 Revert "make threshold for RAM 3GB instead of 2.99GB"
This reverts commit 37b8fc5666.
2022-06-25 05:06:25 +02:00
Aevann1 37b8fc5666 make threshold for RAM 3GB instead of 2.99GB 2022-06-25 05:01:19 +02:00
Aevann1 ffd0d9ed31 show duration on ban icon tooltip 2022-06-25 02:11:00 +02:00
Aevann1 55ebd98f40 add confirmation dialog when u close tab while text is in commentbox/messagebox 2022-06-25 00:58:15 +02:00
Aevann1 6b1560a9d2 add hunter biden's fart 2022-06-24 19:56:28 +02:00
Snakes e896a965ad Fix crab award media path. 2022-06-24 13:22:23 -04:00
Aevann1 4fc8520e24 remove post_toast2() and post_toast3() and incorporate them into post_toast() 2022-06-24 01:07:47 +02:00
Aevann1 80db653d3f fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2130416?context=8#context 2022-06-23 23:25:07 +02:00
Aevann1 d704592bdd cache-bust all previously broken images 2022-06-22 17:59:47 +02:00
Aevann1 20585ca543 add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes) 2022-06-22 17:51:19 +02:00
Aevann1 d9cdbd0015 return to only allowing images/videos/audio 2022-06-19 18:56:45 +02:00
Aevann1 ccdabcba29 allow uploading of all types of files (using lain.la)
+ allow multiple file upload in bios and messaging admins
2022-06-18 17:53:34 +02:00
Aevann1 89a85a8ec0 remove weird trailing tabs 2022-06-18 04:13:55 +02:00
Aevann1 7387616100 move all of wholesome award to translate 2022-06-18 04:11:27 +02:00
Aevann1 76ac00f04b convert 1 part of wholesome award on inferior browsers to translate + clean up awards.css 2022-06-18 03:53:25 +02:00
Aevann1 c609e98ba5 move ricardo from top-left to translate 2022-06-18 03:39:50 +02:00
Aevann1 d4260138f5 Revert "de-nerf tilt award on mobile"
This reverts commit 3985a58815.
2022-06-16 14:37:23 +02:00
Aevann1 59456fc895 Revert "fuck you, use a real browser"
This reverts commit 6ecca70924.
2022-06-16 02:31:14 +02:00
Aevann1 6ecca70924 fuck you, use a real browser 2022-06-16 01:56:24 +02:00
Aevann1 3985a58815 de-nerf tilt award on mobile 2022-06-15 19:05:04 +02:00
Snakes 1e26fb3d79 Hide self-deleted posts from other users. 2022-06-14 18:04:22 -04:00
Aevann1 285aa6a857 limit post padding to posts with "tilt" award only 2022-06-13 23:43:58 +02:00
Aevann1 f84336143f adding padding to posts (for tilt award) 2022-06-13 22:12:04 +02:00
Aevann1 29d2a549c4 remove !important from tilt award css 2022-06-13 21:08:57 +02:00
Aevann1 92aaa125f8 Revert "rename "#post-award-confetti" to "confetti" (minimalism autism""
This reverts commit 87549f9d3c.
2022-06-13 20:55:18 +02:00
Aevann1 87549f9d3c rename "#post-award-confetti" to "confetti" (minimalism autism" 2022-06-13 20:51:23 +02:00
Aevann1 0f49c8e32f replace spaces with tabs 2022-06-13 20:33:25 +02:00
Aevann1 8f72407f84 show the party hat in the header too 2022-06-13 19:46:40 +02:00
Aevann1 165e394dea decreased award threshold from 4GB to 3GB 2022-06-11 15:56:21 +02:00
Aevann1 3ec049e222 testing commit #2 2022-06-11 14:33:17 +02:00
Aevann1 6314b0f788 testing commit #1 2022-06-11 14:31:43 +02:00
Aevann1 bceb87d58c disable the JS for shit/fireflies/fireworks/strippercake
awards on devices with less than 4 GB RAM
2022-06-10 23:58:17 +02:00
Aevann1 558726228e fix floating awards being too large 2022-06-10 17:47:17 +02:00
Aevann1 ecc121bf93 fix gigantic wholesome award size on mobile 2022-06-07 12:52:48 +02:00
Snakes cb5f9d05c6 templates: Fix improper plurals, create helpers.
Previously, the three instances of 'Report[s]' and one instance of
'Coin[s]' in the UI templates were always pluralized, even when they
referred to a singular instance. This has been corrected by creating
a `plural` helper macro.

Additionally, this was used as impetus to create `utils/helpers.html`
to eventually move more recurring template logic into macros.
2022-06-07 05:26:22 -04:00
Nekobit 3cf66b33ec Fix dramlr or dramalr or tumblr or whatever its called 2022-05-30 01:35:27 -04:00
Snakes 05fc950004 Add support for distinguishing ghosted. 2022-05-28 00:47:33 -04:00
Aevann1 2595706b49 fsd 2022-05-26 20:36:37 +02:00
Aevann1 3706d3d22c sdf 2022-05-25 20:36:09 +02:00
Snakes da27b16c39 Disable fartmode on non-rDrama sites. 2022-05-25 07:24:34 -04:00
Aevann1 d9145c76d4 sdf 2022-05-25 01:40:50 +02:00
Aevann1 02e98b46b0 is_audio 2022-05-24 18:28:12 +02:00
Snakes 727f58f159 Fix confetti appearing in awardModal.
The confetti button in the awardModal had a conflicting ID to the
newly-reimplemented confetti award. This resulted in an amusing bug
where the awardModal was filled with confetti. Conflict has been
resolved by renaming the confetti overlay.

This is what I deserve for writing code at 3AM.
2022-05-23 11:51:10 -04:00
Snakes 517e5ec3b3 Re-implement confetti award.
To replace the implementation of the confetti award, we now use an
animated WebP tiled as a background image on a fixed overlay. This
should alleviate the previous performance concerns (no runtime
calculation of confetti mechanics & rendering) and maintainable
concerns.
2022-05-23 02:57:43 -04: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 f0dec0d06d Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-23 00:21:13 +02:00
Aevann1 0a74a98ec5 big ass commit 2022-05-23 00:15:29 +02:00
Snakes 74a66876ef Ricardo: replace gifs with webp anims. 2022-05-22 17:50:04 -04:00
DrTransmisia 4b6a811e21 Lenewlink (#282)
* allowing the user to click on profile ANCHOR with special keys

* le epic version bump for le cloudfare chaching, has arrived
2022-05-22 19:31:27 +02:00
Aevann1 20cc20d806 fsd 2022-05-21 14:36:22 +02:00
Snakes 16e3d3b3e9 Disable tilts on distinguished posts. 2022-05-19 22:27:51 -04:00
Aevann1 0eb39b987c 2022-05-20 00:24:34 +02:00
Snakes c789f6923e Merge remote-tracking branch 'upstream/frost' into birthgay-staging 2022-05-19 17:59:35 -04:00
Snakes 0608e0ce9d Media folder: create, add birthgay, move crab. 2022-05-19 13:09:19 -04:00
Aevann1 3354363261 dfs 2022-05-18 21:04:06 +02:00
Aevann1 9df87dc5c6 sf 2022-05-14 15:18:33 +02:00
geese-suck 70c61904d9 multi ricardo action 2022-05-10 13:19:55 -04:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00
TLSM 0447c9c09e Fix remaining emoji-btn clickboxes. (#247)
In line with 1c363303f0, repeat a similar fix for the four remaining
emoji-btns which had wrong clickboxes.
2022-05-06 05:38:20 +02:00
geese 02928305ed aaa 2022-05-04 21:29:59 -04:00
Aevann1 2008bc76c1 cakedays 2022-05-05 01:31:11 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
Aevann1 b0384c3647 sfd 2022-04-29 17:58:37 +02:00
Aevann1 d961ffc913 fds 2022-04-28 02:04:01 +02:00
Aevann1 0f05bf3f94 fsd 2022-04-26 00:28:20 +02:00
Aevann1 139a01998b ti 2022-04-25 23:41:46 +02:00
Aevann1 c447af6f50 fdssfd 2022-04-22 22:02:47 +02:00
Aevann1 8d268268f1 fds 2022-04-18 19:20:10 +02:00
Aevann1 6c662e351a fds 2022-04-16 21:14:11 +02:00
Aevann1 99cb01d9fc fdsfds 2022-04-15 18:28:08 +02:00
bAWario 8c25a48d0c Glowiefied Checkmark (#226)
Co-authored-by: Captain <Captain@PC>
2022-04-14 00:23:46 +02:00
Aevann1 709eb5a2de fds 2022-04-13 02:05:18 +02:00
Aevann1 17852d30e6 fart mode 2022-04-12 19:29:52 +02:00
Aevann1 e7694c8425 sfd 2022-04-12 00:02:54 +02:00
Aevann1 d9ebb86d37 fds 2022-04-11 12:44:33 +02:00
Aevann1 344f1afa93 fds 2022-04-10 18:47:17 +02:00
Aevann1 8851da2725 fds 2022-04-10 15:59:44 +02:00
Aevann1 688bfb5a50 gf 2022-04-10 02:44:59 +02:00
Aevann1 e6c0044d35 fart 2022-04-10 02:37:45 +02:00
Aevann1 6993d28e18 hgf 2022-04-07 02:21:38 +02:00
Aevann1 3d78bf226b dgf 2022-04-07 02:10:21 +02:00
Aevann1 eeca8328f9 fds 2022-04-06 23:13:02 +02:00
Aevann1 a028fab902 gf 2022-04-06 23:12:08 +02:00
Aevann1 35affa19cd fds 2022-04-05 15:26:53 +02:00
Aevann1 cdac160a0c fsd 2022-04-02 19:43:11 +02:00
Aevann1 ae82ada424 fsd 2022-04-02 18:54:27 +02:00
Aevann1 4851bb896c fds 2022-03-31 19:16:13 +02:00
Aevann1 b538d2a24c gdfg 2022-03-31 18:28:53 +02:00
Aevann1 266c5054e1 sfd 2022-03-26 14:06:25 +02:00
Aevann1 f207794418 sdf 2022-03-26 14:04:28 +02:00
Aevann1 b74c8711d7 fd 2022-03-26 00:30:15 +02:00
Aevann1 eec1738d01 what a mess 2022-03-24 21:44:12 +02:00
Aevann1 26129d37c6 f 2022-03-23 10:12:25 +02:00
Aevann1 ef70592bf7 fsd 2022-03-22 17:59:40 +02:00
Aevann1 99a74a7853 sdf 2022-03-22 17:56:18 +02:00
Aevann1 f65ff6a353 fsd 2022-03-22 17:45:52 +02:00
Aevann1 e4474097ff fds 2022-03-21 23:52:09 +02:00
Aevann1 ffe1964981 fds 2022-03-21 23:31:16 +02:00
Aevann1 f2b37035c9 fg 2022-03-20 23:24:50 +02:00
Aevann1 a9f6f5a0e0 post 2022-03-19 18:19:02 +02:00
Aevann1 4f283e0764 fds 2022-03-19 01:21:14 +02:00
Aevann1 de6cebe659 aw 2022-03-17 10:59:44 +02:00
Aevann1 b774286ba2 gf 2022-03-13 09:26:22 +02:00
Aevann1 ee1931f224 fds 2022-03-13 09:23:07 +02:00