Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/story/[storylineId]/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ImageResponse } from "next/og";
import { type Address } from "viem";
import { createServerClient, type Storyline } from "../../../../../lib/supabase";
import { getTokenTVL } from "../../../../../lib/price";
import { lookupByAddress } from "../../../../../lib/farcaster";
import { getFarcasterProfile } from "../../../../../lib/actions";
import { RESERVE_LABEL, STORY_FACTORY } from "../../../../../lib/contracts/constants";
import { formatPrice } from "../../../../../lib/format";
import { truncateAddress } from "../../../../../lib/utils";
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function GET(
const [tvlInfo, plotUsd, farcasterProfile, fontData] = await Promise.all([
sl.token_address ? getTokenTVL(sl.token_address as Address) : null,
getPlotUsdPrice(),
lookupByAddress(sl.writer_address).catch(() => null),
getFarcasterProfile(sl.writer_address).catch(() => null),
loadFont(),
]);

Expand Down
4 changes: 2 additions & 2 deletions src/components/WriterIdentity.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from "next/link";
import { lookupByAddress } from "../../lib/farcaster";
import { getFarcasterProfile } from "../../lib/actions";
import { truncateAddress } from "../../lib/utils";

/**
Expand All @@ -8,7 +8,7 @@ import { truncateAddress } from "../../lib/utils";
* Links to the internal profile page at /profile/[address].
*/
export async function WriterIdentity({ address }: { address: string }) {
const profile = await lookupByAddress(address);
const profile = await getFarcasterProfile(address);

if (!profile) {
return (
Expand Down
Loading