fixed onboarding page

This commit is contained in:
Ren Amamiya
2023-04-17 09:18:28 +07:00
parent 1924310e41
commit 01a5733ef4
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
import { RelayContext } from '@components/relaysProvider';
import { UserBase } from '@components/user/base';
import { fetchMetadata } from '@utils/metadata';
import { fetchProfileMetadata } from '@utils/hooks/useProfileMetadata';
import { followsTag } from '@utils/transform';
import { createClient } from '@supabase/supabase-js';
@@ -72,7 +72,7 @@ export default function Page({ params }: { params: { id: string; pubkey: string;
setLoading(true);
for (const follow of follows) {
const metadata: any = await fetchMetadata(follow);
const metadata: any = await fetchProfileMetadata(follow);
createPleb({
pleb_id: follow + '-lume' + params.id,
pubkey: follow,

View File

@@ -4,7 +4,7 @@ import { RelayContext } from '@components/relaysProvider';
import { DEFAULT_AVATAR } from '@stores/constants';
import { fetchMetadata } from '@utils/metadata';
import { fetchProfileMetadata } from '@utils/hooks/useProfileMetadata';
import { truncate } from '@utils/truncate';
import Image from 'next/image';
@@ -38,7 +38,7 @@ export default function Page({ params }: { params: { privkey: string } }) {
const { createPleb } = await import('@utils/bindings');
if (profile?.id !== null) {
for (const tag of tags) {
const metadata: any = await fetchMetadata(tag[1]);
const metadata: any = await fetchProfileMetadata(tag[1]);
createPleb({
pleb_id: tag[1] + '-lume' + profile.id.toString(),
pubkey: tag[1],