Skip to content

Commit

Permalink
fix: Remove Twitter Support
Browse files Browse the repository at this point in the history
  • Loading branch information
bendevnull committed Aug 2, 2024
1 parent 1f3f02f commit 60381a6
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 29 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ You can set yourself as an administrator by chaing the "role" column to "admin"
| IRON_SECRET | Secret for Iron to encrypt the cookie | stringwithatleast64chars |
| DISCORD_CLIENT_ID | Discord Client ID | |
| DISCORD_CLIENT_SECRET | Discord Client Secret | |
| TWITTER_API_KEY | Twitter API Key | |
| TWITTER_API_SECRET_KEY | Twitter API Secret Key | |
| WEBPACK_ANALYZE | Runs Webpack Analyzer on start | true |
| NEXT_PUBLIC_LOGGING_LEVEL | Logging Level | TRACE, DEBUG, INFO, WARNING, ERROR or CRITICAL |
| NEXT_PUBLIC_STAGING | If the instance is a staging instance where data may be deleted | true |
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ model user {
created_at DateTime @default(dbgenerated("CURRENT_TIMESTAMP(3)"))
updated_at DateTime @default(dbgenerated("CURRENT_TIMESTAMP(3)"))
badge String? @db.VarChar(50)
language String @default("en") @db.VarChar(11)
isBanned Int @default(0) @db.SmallInt
isPublic Int @default(1) @db.SmallInt
publicOverride Int? @db.SmallInt
language String @default("en") @db.VarChar(11)
accounts accounts[]
banned_user banned_user[]
game_sessions game_sessions[]
Expand Down
1 change: 0 additions & 1 deletion src/components/shared/AppNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function AppNavbar () {
<img
alt="LinkTag Logo"
className="d-inline-block align-text-top no-shadow"
height={46}
src="/logo.png"
width={128}
/>
Expand Down
24 changes: 0 additions & 24 deletions src/lib/utils/oAuthUtils.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/pages/api/auth/login/discord.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ncWithSession } from '@/lib/routing'
import { generateRandomKey, isBlank } from '@/lib/utils/utils'
import { LOGIN_ERROR_URI } from '@/lib/utils/oAuthUtils'
import logger from '@/lib/logger'
import prisma from '@/lib/db'
import ENV from '@/lib/constants/environmentVariables'
Expand All @@ -9,6 +8,7 @@ import HTTP_CODE from '@/lib/constants/httpStatusCodes'
const PROVIDER_ID = 'discord'
const BASE_URL = 'https://discord.com/api'
const REDIRECT_URI = `${ENV.BASE_URL}/api/auth/login/discord`
const LOGIN_ERROR_URI = `${ENV.BASE_URL}/?error=1`

async function generateAuthorizeUrl (request, response) {
const authUri = new URL(`${BASE_URL}/oauth2/authorize`)
Expand Down

0 comments on commit 60381a6

Please sign in to comment.