forked from rDrama/rDrama
1
0
Fork 0
rDrama/migrations
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
..
20220702-poll-rework.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220708-notification-rework.sql
20220711-pronouns.sql
20220805-modaction-notifs-rework.sql
20220831-casino-feature.sql
20220903-hats.sql
20220909-marsey-submissin-ui.sql
20220910-hat-submissin-ui.sql
20220910-notify-followers.sql
20220911-add-roulette.sql
20220912-created_utc-columns.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220913-transactions.sql
20220916-remove-winnings-column.sql
20220920-spider-award.sql
20220929-hole-logs.sql
20221002-body-tsvector.sql
20221006-media-table.sql
20221204-custom-background.sql
20221204-new-cc-system.sql
20221205-profile-background.sql
20221205-profile-wall.sql
20221207-transparent-rework.sql
20221209-multiple-sub-banners.sql [DO NOT MERGE] multiple sub banners (#59) 2022-12-11 23:44:34 +00:00
20221210-increase-css-limit.sql
20221213-convert-shadowbanned-attribute-to-fkey.sql
20221213-increase-charlimit-of-enemies-and-friends.sql
20221213-is_banned_fkey.sql
20221215-add-price-paid.sql
20221220-grinch-toggle.sql
20221222-remove-janny-internal-cache.sql
20221226-add-chudded_by.sql
20230101-change-event-structure.sql
20230120-remove-discord.sql
20230125-add-button-to-blacklist-users-from-restricted-holes.sql
20230127-fix-underscores-in-links.sh
20230128-stop-using-nullslast.sql
20230201-use-transactions-table-in-rdrama.sql
20230218-remove-deleted-column.sql
20230218-rename-embed_url-to-embed.sql
20230219-message-search.sql
20230219-remove-card-view.sql
20230224-ping-groups.sql
20230226-better-ratelimiting.sh
20230226-search-modmail.sql
20230228-increase-body-max-limit-for-patrons.sql
20230228-position-options.sql
20230303-increase-charlimit-bio-friends-enemies.sql
20230311-add-automatic-ddos-mitigation.sql
20230311-add-poster-url.sql
20230318-expand-emoji-submission-form.sql remove faulty sql command 2023-03-25 23:38:28 +02:00
20230319-make-agendaposter-phrase-customizable.sql
20230429-remove-wordle.sql remove !wordle since nobody uses it (only 2 ppl used it last 30 days in rdrama and WPD) 2023-04-29 23:27:45 +02:00
20230503-add-new-patron-tier-for-benefactorcels.sql minor fixes to last couple of commits 2023-05-03 19:06:14 +03:00
20230511-add-lifetime-donated-column.sql rename function 2023-05-11 17:03:51 +03:00
20230513-add-namelock-award.sql add namelock award 2023-05-13 07:53:14 +03:00
20230513-move-award-timers-to-cron.sql rename migration 2023-05-13 07:53:36 +03:00
20230608-rename-submissions-to-posts.sql rename submissions to posts 2023-06-08 02:26:32 +03:00
20230617-add-queen-award.sql rename migration file 2023-06-21 15:44:45 +03:00
20230623-make-chud-not-retroactive.sql make chud effects not retroactive 2023-06-23 16:14:23 +03:00
20230623-rename-agendaposter-to-chud.sql rename "agendaposter" to "chud" 2023-06-23 14:07:47 +03:00
20230623-rename-flags-to-reports.sql rename flags to reports 2023-06-23 19:49:26 +03:00
20230623-rename-submissions-to-posts.sql switch to tabs 2023-06-23 17:26:29 +03:00
20230624-add-ping_costsql.sql do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4197134#context 2023-06-24 23:31:12 +03:00
20230625-add-sharpen-award.sql fix missing sql commands in last commit 2023-06-26 17:45:09 +03:00
20230702-orgies.sql Bring back orgies (watchparties), now controllable by admins, and generally better in all ways (#165) 2023-07-02 23:55:37 +00:00