Skip to content

Commit

Permalink
Remove LGBTQ+ server website as the code for that is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Nov 2, 2024
1 parent d81650d commit 27702cf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 23 deletions.
1 change: 0 additions & 1 deletion settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"agressive": true
},
"url": "https://discordextremelist.xyz",
"lgbtSiteURL": "https://discordextremelist.gay",
"dev": true,
"callback": "/auth/login/callback",
"bannedVanityURLs": []
Expand Down
1 change: 0 additions & 1 deletion src/Routes/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ router.post("/", variables, async (req: Request, res: Response) => {
server,
search: true,
baseURL: settings.website.url,
lgbtWebURL: settings.website.lgbtSiteURL,
profile: false,
__: res.locals.__
}
Expand Down
11 changes: 4 additions & 7 deletions src/Routes/servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,6 @@ router.get("/:id", variables, async (req: Request, res: Response) => {
});
}

if (server.tags.includes("LGBT"))
res.redirect(`${settings.website.lgbtSiteURL}/servers/${server._id}`);

let serverOwner: delUser | undefined = await userCache.getUser(
server.owner.id
);
Expand Down Expand Up @@ -973,7 +970,7 @@ router.post(
embed.setDescription(req.body.reason);
embed.setURL(`${settings.website.url}/servers/${server._id}`);
embed.setFooter({
text: "It will still be shown as a normal server, it was declined from being listed as an LGBT community."
text: "It will still be shown as a normal server, it was declined from being listed as an LGBTQ+ community."
});

await discord.channels.logs.send({
Expand All @@ -997,7 +994,7 @@ router.post(
server.name
)}** \`(${
server._id
})\` was declined from being listed as an LGBT community. It will still appear as a normal server.\n**Reason:** \`${
})\` was declined from being listed as an LGBTQ+ community. It will still appear as a normal server.\n**Reason:** \`${
req.body.reason || "None specified."
}\``
)
Expand Down Expand Up @@ -1081,7 +1078,7 @@ router.get(
req.user.id
})\` approved server **${functions.escapeFormatting(
server.name
)}** \`(${server._id})\` to be listed as an LGBT community.\n<${
)}** \`(${server._id})\` to be listed as an LGBTQ+ community.\n<${
settings.website.url
}/servers/${server._id}>`
)
Expand All @@ -1099,7 +1096,7 @@ router.get(
server.name
)}** \`(${
server._id
})\` was approved as being listed as an LGBT community.`
})\` was approved as being listed as an LGBTQ+ community.`
)
.catch((e) => {
console.error(e);
Expand Down
2 changes: 0 additions & 2 deletions src/Util/Function/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ export const variables = async (
res.locals.premidPageInfo = "";
res.locals.hideLogin = false;

res.locals.lgbtWebURL = settings.website.lgbtSiteURL;

if (req.session.disableRTL && req.session.disableRTL === true) {
res.locals.htmlDir = "ltr";
} else
Expand Down
10 changes: 3 additions & 7 deletions views/partials/cards/serverCard.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<%
let viewURL = `${linkPrefix}/servers/${server._id}`;
if (server.tags.includes("LGBT")) viewURL = `${lgbtWebURL}${linkPrefix}/servers/${server._id}`;
%>
<div class="column is-one-third" is-server-card>
<div class="box has-background-primary" style="overflow: hidden; height: 100%;">
<article class="media">
Expand All @@ -23,14 +19,14 @@
<div class="content-footer">
<div class="buttons">
<% if (search === true) { %>
<a href="<%= viewURL %>" class="button is-default is-outlined">
<a href="<%= linkPrefix %>/servers/<%= server._id %>" class="button is-default is-outlined">
<span class="icon">
<i class="fas fa-comments-alt"></i>
</span>
<span><%= __("common.view.server") %></span>
</a>
<% } else if (queue === true) { %>
<a href="<%= viewURL %>" class="button is-default is-outlined">
<a href="<%= linkPrefix %>/servers/<%= server._id %>" class="button is-default is-outlined">
<span class="icon">
<i class="fas fa-eye"></i>
</span>
Expand All @@ -55,7 +51,7 @@
<span><%= __("common.staff.decline") %></span>
</a>
<% } else { %>
<a href="<%= viewURL %>" class="button is-default is-outlined">
<a href="<%= linkPrefix %>/servers/<%= server._id %>" class="button is-default is-outlined">
<span class="icon">
<i class="fas fa-eye"></i>
</span>
Expand Down
5 changes: 0 additions & 5 deletions views/templates/servers/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
</span>
<span><%= __("common.nav.me.submitServer") %></span>
</a>
<a href="<%= lgbtWebURL %>" class="button is-dark" style="background-image: linear-gradient(141deg,#ff000e 0, #ff000e 16.6%, #ff5000 16.7%, #ff5000 33.3%, #fcba03 33.4%, #fcba03 49.9%, #138f3e 50%, #138f3e 66.6%, #3558a0 66.7%, #3558a0 83.3%, #880082 83.4%, #880082 100%); border: none">
<span>
<%= __("common.lgbtServers") %>
</span>
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 27702cf

Please sign in to comment.