-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add toot search, fixed twitter search. Think there are some bugs with…
… this…
- Loading branch information
1 parent
4e2282c
commit 377a2c5
Showing
7 changed files
with
119 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { getToot } from '@/src/utils/fetching/toots'; | ||
import { createServerClient } from '@/src/utils/supabase/server'; | ||
import { cookies } from 'next/headers'; | ||
|
||
import { TootFeedItem } from '../../../../src/components/TootFeedItem'; | ||
|
||
export default async function BookmarkPage({ | ||
params, | ||
}: { | ||
params: { id: string }; | ||
}) { | ||
const cookieStore = cookies(); | ||
const supabaseClient = createServerClient(cookieStore); | ||
const { data } = await getToot({ supabaseClient, id: params.id }); | ||
// @ts-ignore | ||
return <TootFeedItem {...data} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { getTweet } from '@/src/utils/fetching/tweets'; | ||
import { createServerClient } from '@/src/utils/supabase/server'; | ||
import { cookies } from 'next/headers'; | ||
|
||
import { TweetFeedItem } from '../../../../src/components/TweetFeedItem'; | ||
|
||
export default async function BookmarkPage({ | ||
params, | ||
}: { | ||
params: { id: string }; | ||
}) { | ||
const cookieStore = cookies(); | ||
const supabaseClient = createServerClient(cookieStore); | ||
const { data } = await getTweet({ supabaseClient, id: params.id }); | ||
// @ts-ignore | ||
return <TweetFeedItem {...data} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters