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: #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 remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220711-pronouns.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220805-modaction-notifs-rework.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220831-casino-feature.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220903-hats.sql get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
20220909-marsey-submissin-ui.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220910-hat-submissin-ui.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220910-notify-followers.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220911-add-roulette.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
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 remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220916-remove-winnings-column.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220920-spider-award.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20220929-hole-logs.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20221002-body-tsvector.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20221006-media-table.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20221204-custom-background.sql Update custom-bg migration to support data. 2022-12-04 19:06:44 -05:00
20221204-new-cc-system.sql remove country club system and replace it with a 3 tier thing: (#41) 2022-12-04 18:39:06 +00:00
20221205-profile-background.sql add button on profile to upload profile background (#48) 2022-12-05 04:16:45 +00:00
20221205-profile-wall.sql add migration file 2022-12-04 20:05:45 -05:00
20221207-transparent-rework.sql tie transparent theme to backgrounds 2022-12-07 19:53:29 +02:00
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 increase css limit from 4000 to 10000 2022-12-10 20:30:19 +02:00
20221213-convert-shadowbanned-attribute-to-fkey.sql minor bug fix 2022-12-13 21:03:17 +02:00
20221213-increase-charlimit-of-enemies-and-friends.sql do this https://stupidpol.site/post/130970/this-is-fucking-bullshit-codecels-fix 2022-12-13 19:15:07 +02:00
20221213-is_banned_fkey.sql make is_banned fkey on user id 2022-12-14 00:02:53 +02:00
20221215-add-price-paid.sql remove pcm from code 2022-12-21 14:42:41 +02:00
20221220-grinch-toggle.sql add toggle for event music 2022-12-20 03:38:19 +02:00
20221222-remove-janny-internal-cache.sql delete ability of jannies to clear internal cache 2022-12-22 22:52:36 +02:00
20221226-add-chudded_by.sql disallow jannoids from undoing chud awards 2022-12-26 04:38:32 +02:00
20230101-change-event-structure.sql change event structure 2023-01-01 07:33:09 +02:00
20230120-remove-discord.sql purge discord from site code 2023-01-20 07:31:53 +02:00
20230125-add-button-to-blacklist-users-from-restricted-holes.sql add button to blacklist users from restricted holes 2023-01-25 17:41:46 +02:00
20230127-fix-underscores-in-links.sh fix underscores inside links 2023-01-27 11:11:13 +02:00
20230128-stop-using-nullslast.sql stop using nullslast #102 2023-01-28 10:25:19 +02:00
20230201-use-transactions-table-in-rdrama.sql rename file 2023-02-01 21:07:15 +02:00
20230218-remove-deleted-column.sql remove .deleted column for alts 2023-02-18 17:19:14 +02:00
20230218-rename-embed_url-to-embed.sql renamed p.embed_url to p.embed 2023-02-18 18:33:19 +02:00
20230219-message-search.sql minor fix to the migration sql command 2023-02-19 22:26:36 +02:00
20230219-remove-card-view.sql apparently cardview toggle got removed from the settings, so might as well remove it from the code 2023-02-19 11:20:16 +02:00
20230224-ping-groups.sql add ping groups 2023-02-24 08:31:06 +02:00
20230226-better-ratelimiting.sh add migration file 2023-02-26 14:10:33 +02:00
20230226-search-modmail.sql fix migration file 2023-02-26 11:31:33 +02:00
20230228-increase-body-max-limit-for-patrons.sql do this https://stupidpol.site/h/countryclub/post/79285/-/3681172#context 2023-02-28 21:36:14 +02:00
20230228-position-options.sql fix emojis in polls 2023-03-01 00:56:46 +02:00
20230303-increase-charlimit-bio-friends-enemies.sql increase charlimit for bio, friends, and enemies to 5k 2023-03-03 06:19:52 +02:00
20230311-add-automatic-ddos-mitigation.sql add automatic DDOS mitigation 2023-03-11 08:13:58 +02:00
20230311-add-poster-url.sql add poster_url for videos 2023-03-11 08:29:52 +02:00
20230318-expand-emoji-submission-form.sql remove faulty sql command 2023-03-25 23:38:28 +02:00
20230319-make-agendaposter-phrase-customizable.sql reduce max length of agendaposter_phrase to 50 2023-03-21 16:15:43 +02:00
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