Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_ss23_gameunity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Yusuf Akgül
project_ss23_gameunity
Commits
0d28c99b
Commit
0d28c99b
authored
1 year ago
by
Yusuf Akgül
Browse files
Options
Downloads
Patches
Plain Diff
woops
parent
f6daf154
No related branches found
Branches containing commit
No related tags found
1 merge request
!32
User page link
Pipeline
#38822
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/(content)/(user)/[userid]/page.tsx
+1
-5
1 addition, 5 deletions
app/(content)/(user)/[userid]/page.tsx
with
1 addition
and
5 deletions
app/(content)/(user)/[userid]/page.tsx
+
1
−
5
View file @
0d28c99b
...
...
@@ -6,6 +6,7 @@ import { Skeleton } from "@/components/ui/skeleton"
import
{
UserAvatar
}
from
"
@/components/user-avatar
"
import
{
db
}
from
"
@/lib/db
"
import
{
getFavoriteGames
}
from
"
@/lib/igdb
"
import
{
getCurrentUser
}
from
"
@/lib/session
"
import
{
IGame
}
from
"
@/types/igdb-types
"
import
{
redirect
}
from
"
next/navigation
"
...
...
@@ -13,10 +14,6 @@ import { redirect } from "next/navigation"
export
default
async
function
User
({
params
}:
{
params
:
{
userid
:
string
}
})
{
const
user
=
await
getCurrentUser
()
/* if (user?.username !== params.userid) {
redirect('/')
} */
const
sessionUser
=
await
db
.
user
.
findFirst
({
where
:
{
id
:
user
?.
id
...
...
@@ -41,7 +38,6 @@ export default async function User({ params }: { params: { userid: string } }) {
redirect
(
'
/
'
)
}
let
favoritegames
=
undefined
let
playingGames
=
undefined
let
finishedGames
=
undefined
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment