Commit Graph

50 Commits (759c90fdf8f23ca31fe7191d5122dc4463d3a90b)

Author SHA1 Message Date
Aevann ae395b7fe4 remove linefeeds 2024-02-14 17:12:43 +02:00
Aevann d1fdd25b2f found a much better fix to debugging on mobile 2023-10-16 20:43:34 +03:00
Aevann ff8e937112 allow debugging on phone 2023-10-02 05:19:51 +03:00
Aevann 6c46de47de try smth on devrama to fix chat refreshing 2023-09-26 23:45:16 +03:00
Aevann e7ab0be33b make /notifications/messages LIVE 2023-09-26 23:05:39 +03:00
Aevann d790771a71 dont allow any random nigga to refresh chat for everyone 2023-09-26 18:25:52 +03:00
Aevann c9f3b95f86 refresh chat automatically when orgy starts 2023-09-26 15:29:36 +03:00
Aevann d089d18e2d merge /chat and /orgy again 2023-09-25 01:12:42 +03:00
Aevann 31cf4c13f6 Revert "fix some stuff not loading in localhost bc of upgrade-insecure-requests"
This reverts commit 9c87669d92.
2023-09-09 02:03:41 +03:00
Aevann 8bae228129 add separate chatroom for orgies 2023-09-05 18:32:57 +03:00
Aevann 60eaa5d282 remove /old_chat (needless bloat) 2023-08-16 23:12:37 +03:00
Aevann 9c87669d92 fix some stuff not loading in localhost bc of upgrade-insecure-requests 2023-08-05 05:18:14 +03:00
Aevann a762f97734 use /d by default instead of /rDrama for consistency 2023-07-26 21:29:45 +03:00
Aevann fad7834983 same as last commit 2023-07-22 20:47:39 +03:00
Aevann 3b21f1864a move offline.html to templates for consistency 2023-07-22 20:45:29 +03:00
HeyMoon 7c040367fa Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165)
This PR adds orgies back into rdrama. Long ago, snakes made the original orgy code, and it was super fun. But he had to rush it out, and ended up making it a bit unsustainable, and had a couple questionable coding decisions, which meant that it had to be removed. Hey, the man literally did it in a few hours before the DB trial continued, lmao.

Anyways, I took my own approach to it. I do not use iframes, i just just repurpose code from /chat window. Because I had that freedom, I also moved things around to make the user experience a bit better. I also added a title to give users some context about what's happening. Check it out

![image](/attachments/6719146c-4922-4d75-967d-8d424a09b198)

Most importantly, this is all configurable from the site. Admins with the permission "ORGIES" will see this in their control panel

![image](/attachments/423d6046-a11d-4e84-bd2c-a2a641afd552)

Nigga, idk where to put it, so I made my own category.

If there is no orgy in progress, admins will see this:

![image](/attachments/7c64b9fa-cdf4-4986-a0c4-f2324878062e)

Click the button, and, viola, the orgy begins.

If there is an orgy in progress, the page will look like this:

![image](/attachments/b65be4b3-5db1-43cb-8857-7d3a8ea24ca7)

Click the button, and the orgy stops.

If an orgy is in progress, navigating to /chat will take the user to the orgy seemlessly. But what if they don't want to participate, liek some kind of spoilsport? Just navigate to /old_chat.

That's just about it, it's really that simple. I have lots of ideas for the future, but I'll let that wait til later :).

A few notes about implementation:
 - I moved some functionality out of /templates/chat.html and into /templates/util/macros.html. This is just so I could reference the code directly from my new template, /templates/orgy.html.
 - The orgy is stored as a single row in the new table "orgies". Okay, I know this is a little silly, but you know what they say: "if it's stupid and it works, it's not stupid". (tbf the oceangate ceo also said that)

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: rDrama/rDrama#165
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-02 23:55:37 +00:00
Aevann f2b576acd6 remove cache-control header before assigning it again 2023-05-04 23:02:17 +03:00
Aevann 0a7a56e056 put cache control header in /songs/ just in case 2023-05-04 22:39:21 +03:00
Aevann 88d90612ef fix nginx config 2023-03-17 15:09:51 +02:00
Aevann 9939614711 use i. subdomain for images 2023-03-05 21:33:18 +02:00
Aevann 113a48d638 add nginx 404 template 2023-02-20 20:34:58 +02:00
Aevann d217b3e843 fix ratelimiting in wpd 2023-02-09 10:11:34 +02:00
Aevann 1529e70abd remove /admin/chat for being unused and redundant to /contact 2023-01-30 11:57:00 +02:00
Aevann f2fdefa8cd chat overhaul 2023-01-21 12:36:21 +02:00
Aevann acc71d4cae add /admin/chat and dont store profile_url in chat dict 2023-01-20 06:10:25 +02:00
Aevann 1f0ebdad0b fix nginx conf 2023-01-01 04:10:25 +02:00
Aevann 9bd64ed1f6 increase chat length limit from 200 to 1000 on rdrama 2022-12-31 16:03:51 +02:00
Aevann 0c303b81a3 move CSP to nginx again 2022-12-31 08:38:59 +02:00
Aevann 4e0b7293d5 remove unnecessary linebreak 2022-12-28 12:07:23 +02:00
Aevann b3e6cdd9d0 add report uri everywhere 2022-12-27 04:38:08 +02:00
Aevann 6114111654 tighten CSP 2022-12-27 03:22:39 +02:00
Aevann1 9e974e07d3 minor nginx change 2022-12-13 18:24:12 +02:00
Aevann1 d236bea60e nginx changes 2022-12-12 09:44:17 +02:00
Aevann1 781281d251 minor nginx change 2022-12-10 15:02:40 +02:00
Aevann1 822185f596 add missing header in nginx conf 2022-12-10 14:34:38 +02:00
Aevann1 52f5b2a347 serve almost all files from nginx 2022-12-10 14:21:52 +02:00
Aevann 5c2dab73c7 stop using pusher (#37)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#37
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-02 22:21:18 +00:00
geese_suck a3fa96242c holiday event manager (actually works now edition) (#22)
Co-authored-by: Snakes <duolsm@outlook.com>
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#22
Co-authored-by: geese_suck <deandre.williams@geese-suck.us>
Co-committed-by: geese_suck <deandre.williams@geese-suck.us>
2022-11-29 20:20:26 +00:00
Aevann1 48e45332c7 get rid of 'unsafe-eval' 2022-11-28 06:32:03 +02:00
Aevann1 0fd8157fa6 move CSP to nginx-level 2022-11-28 04:19:59 +02:00
Aevann1 c6c4a834e7 small nginx change 2022-10-30 02:59:33 +02:00
Aevann1 2dc88da8dd consistency in nginx.conf 2022-10-30 02:48:25 +02:00
Aevann1 684bd24326 move 2 headers from python to nginx 2022-10-30 02:46:50 +02:00
Aevann1 1977d2e180 Revert """
This reverts commit c481acace0.
2022-10-29 23:57:42 +02:00
justcool393 c481acace0 " 2022-10-29 16:55:24 -05:00
justcool393 401731e32a - 2022-10-29 16:53:37 -05:00
justcool393 8bbcb9902e HTTP referer: move setting it to nginx from python 2022-10-29 16:50:33 -05:00
Aevann1 f535eed4b2 same as last commit 2022-10-10 07:33:14 +02:00
Aevann1 3cf838af29 fix thumbnails and add opera-proxy to docker 2022-10-06 21:07:45 +02:00
Aevann1 bf9a2398da add nginx to docker 2022-10-04 21:48:52 +02:00