Commit Graph

333 Commits (5066d43870664bec8f3e07ac281d64625b0df9a3)

Author SHA1 Message Date
Aevann 33e922a9dd move modmail notifs to their already-existing section 2024-02-01 02:30:12 +02:00
Aevann 8299177283 message -> chat 2024-02-01 01:28:44 +02:00
Aevann 14a9408eeb better error messages 2023-12-20 17:53:47 +02:00
Aevann 8a82a9b112 show pride username in chat 2023-10-26 22:16:29 +03:00
Aevann dc5fd77f0f fix "too many packets in payload" error 2023-10-26 19:20:05 +03:00
Aevann 2d4a3364af add comment 2023-10-26 19:17:50 +03:00
Aevann f61ba62426 add more orgy controls 2023-10-13 18:56:12 +03:00
Aevann 4c015296d5 more automation 2023-10-13 17:15:27 +03:00
Aevann f978df8580 automate more aspects of mn + allow scheduling orgies 2023-10-13 00:09:38 +03:00
Aevann ee86abda33 remove leftover code 2023-10-10 22:37:17 +03:00
Aevann 4e780473d8 get rid of g.referrer 2023-10-10 22:30:52 +03:00
Aevann 2b600076e0 make mute command not self_only 2023-10-08 23:07:42 +03:00
Aevann 81ab004f54 prevent unnecessary websocket event spam 2023-10-07 23:32:09 +03:00
Aevann 7e1de2bd59 order users online list by time of join instead of it getting ordered automatically during websocket transit by id 2023-10-07 22:50:12 +03:00
Aevann c8b9fe78f1 fix deleting messages in chat 2023-10-07 21:25:22 +03:00
Aevann a4ae3f1880 fix chat 500 error 2023-10-07 20:56:07 +03:00
Aevann ab58190666 fix 2 chat 500 errors 2023-10-07 17:58:53 +03:00
Aevann 3d5734a8e7 minor fix 2023-10-07 13:57:17 +03:00
Aevann b0e501b51b restore heartbeat to remove online hangovers (especially after orgy) https://i.imgur.com/LLxlpY4.png 2023-10-07 13:54:21 +03:00
Aevann d1c9badb7a unify all truescore thresholds 2023-10-05 16:44:31 +03:00
Aevann 019621490a refactor can_see and use it more 2023-10-05 13:09:58 +03:00
Aevann d952bf49db Revert "refactor can_see and use it more"
This reverts commit a0cf583460.
2023-10-05 12:55:35 +03:00
Aevann a0cf583460 refactor can_see and use it more 2023-10-05 12:22:05 +03:00
Aevann d44bd1241c dont generate notifs that wont be seen 2023-10-05 11:48:49 +03:00
Aevann be421a30bf fix 500 error 2023-10-05 10:33:38 +03:00
Aevann 97df1d3774 dedup some shit 2023-10-05 10:33:38 +03:00
Aevann c17da3bb86 stop typing from hanging 2023-10-04 22:55:07 +03:00
Aevann e687537813 Revert "stop online and typing from hanging"
This reverts commit 57b60e9128.
2023-10-04 22:53:54 +03:00
Aevann 57b60e9128 stop online and typing from hanging 2023-10-04 22:02:53 +03:00
Aevann cfac407dcd Revert "merge chat.html and orgy.html"
This reverts commit 094cbf1c41.
2023-10-02 09:12:31 +03:00
Aevann 094cbf1c41 merge chat.html and orgy.html 2023-10-02 07:04:41 +03:00
Aevann 4d2b7be757 switch around the id and username in chat online list 2023-09-29 10:38:54 +03:00
Aevann eed9d490c1 fix the chat online list including the same person more than once if they changed their name or namecolor 2023-09-29 10:33:04 +03:00
Aevann a92b99940c remove .lower() 2023-09-29 07:44:47 +03:00
Aevann eeca8a4c56 increase to 5 2023-09-29 07:44:28 +03:00
Aevann b4795ebef7 dont use uuids for chat (pretty unnecessary and rly ugly) 2023-09-29 07:43:02 +03:00
Aevann fe981e97d6 fix 500 error 2023-09-28 23:47:30 +03:00
Aevann ad16527a40 fix keyerror when referrer is https://watchpeopledie.tv/notifications/messages?page=2 2023-09-28 01:09:09 +03:00
Aevann 5ea9bfcde0 fix 500 error 2023-09-28 01:04:19 +03:00
Aevann c9aa92cc04 remove print-debugging 2023-09-27 00:34:23 +03:00
Aevann 0bfeabd682 Revert "remove unnecessary response code"
This reverts commit f7e4c77898.
2023-09-27 00:30:03 +03:00
Aevann 21e37172f8 print-debugging 2023-09-27 00:17:52 +03:00
Aevann 59d984af3f make the important part of disconnect always work 2023-09-26 23:47:42 +03:00
Aevann 28559e6d34 try fixing /notifications/messages live thing 2023-09-26 23:35:41 +03:00
Aevann e7ab0be33b make /notifications/messages LIVE 2023-09-26 23:05:39 +03:00
Aevann 568f66e070 dont show <img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain2:" title=":marseytrain2:" src="https://i.rdrama.net/e/marseytrain2.webp"> when its not rendered 2023-09-26 18:39:06 +03:00
Aevann f7e4c77898 remove unnecessary response code 2023-09-26 18:20:43 +03:00
Aevann 4f227e5c8b use POST instead of GET 2023-09-26 18:19:29 +03:00
Aevann c9f3b95f86 refresh chat automatically when orgy starts 2023-09-26 15:29:36 +03:00
Aevann 204c756de5 remove leftover print code 2023-09-26 14:33:49 +03:00
Aevann 75d2739c29 try to fix online count increasing infinitely issue 2023-09-26 13:26:39 +03:00
Aevann d089d18e2d merge /chat and /orgy again 2023-09-25 01:12:42 +03:00
Aevann dbd170f205 make jannies immune to automatic chat mute 2023-09-23 20:51:34 +03:00
Aevann a9b078007e refactor slurs and profanities and put them in their own file 2023-09-22 20:01:30 +03:00
Aevann 60580cc6fa add orgy icon 2023-09-17 23:58:08 +03:00
Aevann 7d49737e5d revert earlier change that caused chat messages by shadowbanned-cels to go through 2023-09-16 02:54:58 +03:00
Aevann 4cafef23fd minor reorder 2023-09-14 20:36:14 +03:00
Aevann f392c6bb9c disallow permabanned-cels from all POST endpoints that require auth except /reply /contact /delete/post /delete/comment 2023-09-14 19:49:46 +03:00
Aevann ef906cb8da add forgotten field 2023-09-14 00:40:25 +03:00
Aevann 7e171e8b50 easier subtitle handling 2023-09-13 20:48:27 +03:00
Aevann cc22f009c2 redirect new chat entrants to /orgy when an orgy is active and display number of ppl in the orgy 2023-09-13 01:04:58 +03:00
Aevann d2a61cab1c remove unnecessary f 2023-09-13 01:04:58 +03:00
Aevann e28a748d81 have orgy chat be running at all times instead of the error message 2023-09-09 02:32:39 +03:00
Aevann 3ff47224cf 403 instead of 404 2023-09-08 19:13:27 +03:00
Aevann 9ee45b4a24 remove unnecessary spaces and tabs 2023-09-07 18:26:31 +03:00
Aevann 95d59a418d fix chat errors 2023-09-06 17:29:31 +03:00
Aevann 07a5beac1c allow chat users to upload images higher than 1,000,000 bytes 2023-09-05 22:45:00 +03:00
Aevann 8bae228129 add separate chatroom for orgies 2023-09-05 18:32:57 +03:00
Aevann 8af12ad2c9 make CC and chat threshold the same for movie night purposes 2023-08-26 00:00:53 +03:00
Aevann 60eaa5d282 remove /old_chat (needless bloat) 2023-08-16 23:12:37 +03:00
Aevann 4b977054f2 do what g-tix wants 2023-08-16 00:42:33 +03:00
Aevann 70047a3004 add patron backgrounds in chat 2023-08-14 15:26:42 +03:00
Aevann 414bd30fd7 allow verified-email-cels into chat 2023-08-13 18:13:09 +03:00
Aevann 028a92162b make blocking affect chat too 2023-08-09 18:19:43 +03:00
Aevann a0c0f2af64 remove unnecessary () 2023-08-06 06:33:25 +03:00
Aevann 63c9715d7c fix this https://discord.com/channels/1104830662831247492/1104909974238400542/1135806954611167252 2023-08-01 09:43:32 +03:00
Aevann 7c462bc17f remove a bunch of unnecessary/confusing garbage 2023-07-29 22:13:37 +03:00
Aevann 30b7e3e96e add socketio-friendly wrappers 2023-07-24 13:33:04 +03:00
Aevann 5160c11478 since tempbanned can't speak, make it so they can't emit a typing event 2023-07-24 13:14:28 +03:00
Aevann ff67e30949 dont count failed requests towards ratelimit 2023-07-13 16:50:46 +03:00
HeyMoon abd91f81ac Orgies: Support Rumble and Twitch and Mobile Viewing (#169)
Hell yeah

 - Rumble.com, basically youtube for rightoids (so you can do more edgy streams)
 - Twitch
 - Mobile orgy support, it's pretty bad thoever
 - Button to switch back to normalchat for phonefags

Co-authored-by: Chuck Sneed <sneed@formerlychucks.net>
Reviewed-on: #169
Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net>
Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>
2023-07-10 00:38:02 +00: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: #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 cf230fa7d9 disallow permabanned-cels from chat 2023-06-15 08:36:28 +03:00
Aevann f5a68a7e79 fix 500 errors 2023-03-19 14:01:57 +02:00
Aevann 97608ea0a9 test getting rid of ![]( on devrama 2023-03-12 15:02:31 +02:00
Aevann d604a6cd99 commit leftover file from last commit 2023-03-06 21:52:31 +02:00
Aevann eb59a6a1bc reduce automute from 60 mins to 10 mins 2023-03-04 20:16:38 +02:00
Aevann 8c495c914a default ratelimit doesnt apply implicitly if theres other @limiter.limit before the function, so add it explicity before all functions 2023-02-26 10:41:04 +02:00
Aevann bc93d6c7b7 reduce chat history from 500 messages to 250 to make it load faster 2023-02-19 10:47:20 +02:00
mummified-corroding-granny 58e985525b chat: prevent usernames sticking after rename and color change (#123)
Kindly,

As per $title.

Currently, if a user changes name or color while in chat, the username will stick forever (until clearing all sessions with a process restart).

This PR fxes both of these situations. The code is getting ugly and would benefit from using dictionaries instead of lists, but I suspect there are other priorities.

Thanks,
granny

Reviewed-on: #123
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-17 13:58:02 +00:00
mummified-corroding-granny e2adf9e53d Chat: add minimalistic chat session tracking and fix shadow user spy problem (#121)
Kindly,

Not sure if this is too dramaphobic. I also went with the just enough (TM) approach

The issue this PR intends to fix:
1. user has no chat tabs open
2. user opens two chat tabs
3. user closes second chat tab
4. user disappears from sidebar and user count (because was removed from online py list)
5. user (became shadow user) can now spy on the chat without being listed

Thanks,
granny

Reviewed-on: #121
Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>
2023-02-16 13:41:58 +00:00
Aevann 88814ee208 expand blackjack 2023-02-07 05:31:49 +02:00
Aevann 1529e70abd remove /admin/chat for being unused and redundant to /contact 2023-01-30 11:57:00 +02:00
Aevann d5c23785d0 fix chat count 2023-01-28 17:10:45 +02:00
Aevann 83b34832b8 fix chat count 2023-01-28 12:44:15 +02:00
Aevann 159773cf73 show namecolor in online listing 2023-01-27 20:15:38 +02:00
Aevann 4a795d924f show profile pictures in chat online list 2023-01-27 19:52:47 +02:00
Aevann 349fa17836 use exlamation marks instead of dots in responses to users 2023-01-27 13:57:29 +02:00
Aevann 83b22560eb dont use abort in chat 2023-01-27 09:07:58 +02:00
Aevann 9327ef6eed chat fixes 2023-01-25 03:17:39 +02:00