This commit is contained in:
parent
5cea096067
commit
982f4df0a3
@ -163,7 +163,14 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) {
|
|||||||
)}
|
)}
|
||||||
<div className="profile-wrapper w-max">
|
<div className="profile-wrapper w-max">
|
||||||
<AvatarSection id={id} loginPubKey={loginPubKey} user={user} readonly={readonly} lnurl={lnurl} />
|
<AvatarSection id={id} loginPubKey={loginPubKey} user={user} readonly={readonly} lnurl={lnurl} />
|
||||||
<ProfileDetails user={user} loginPubKey={loginPubKey} id={id} aboutText={aboutText} lnurl={lnurl} showLnQr={true} />
|
<ProfileDetails
|
||||||
|
user={user}
|
||||||
|
loginPubKey={loginPubKey}
|
||||||
|
id={id}
|
||||||
|
aboutText={aboutText}
|
||||||
|
lnurl={lnurl}
|
||||||
|
showLnQr={true}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="main-content">
|
<div className="main-content">
|
||||||
|
@ -56,12 +56,13 @@ export function ProfileNotesTab({ id, relays, isMe }: { id: HexKey; relays?: Arr
|
|||||||
const pinned = usePinList(id);
|
const pinned = usePinList(id);
|
||||||
const options = useMemo(() => ({ showTime: false, showPinned: true, canUnpin: isMe }), [isMe]);
|
const options = useMemo(() => ({ showTime: false, showPinned: true, canUnpin: isMe }), [isMe]);
|
||||||
const subject = useMemo(
|
const subject = useMemo(
|
||||||
() => ({
|
() =>
|
||||||
type: "pubkey",
|
({
|
||||||
items: [id],
|
type: "pubkey",
|
||||||
discriminator: id.slice(0, 12),
|
items: [id],
|
||||||
relay: relays,
|
discriminator: id.slice(0, 12),
|
||||||
} as TimelineSubject),
|
relay: relays,
|
||||||
|
}) as TimelineSubject,
|
||||||
[id, relays],
|
[id, relays],
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
|
@ -60,9 +60,13 @@ async function initSite() {
|
|||||||
updateRelayConnections(System, login.relays.item).catch(console.error);
|
updateRelayConnections(System, login.relays.item).catch(console.error);
|
||||||
|
|
||||||
setupWebLNWalletConfig(Wallets);
|
setupWebLNWalletConfig(Wallets);
|
||||||
Relay.query(["REQ", "preload-social-graph", {
|
Relay.query([
|
||||||
kinds: [3]
|
"REQ",
|
||||||
}]).then(res => {
|
"preload-social-graph",
|
||||||
|
{
|
||||||
|
kinds: [3],
|
||||||
|
},
|
||||||
|
]).then(res => {
|
||||||
for (const ev of res) {
|
for (const ev of res) {
|
||||||
try {
|
try {
|
||||||
socialGraphInstance.handleEvent(ev);
|
socialGraphInstance.handleEvent(ev);
|
||||||
|
@ -59,4 +59,4 @@ export async function fetchProfile(key: string) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,11 @@ export function splitAllByWriteRelays(cache: AuthorsRelaysCache, filters: Array<
|
|||||||
/**
|
/**
|
||||||
* Split filters by authors
|
* Split filters by authors
|
||||||
*/
|
*/
|
||||||
export function splitByWriteRelays(cache: AuthorsRelaysCache, filter: ReqFilter, pickN?: number): Array<RelayTaggedFilter> {
|
export function splitByWriteRelays(
|
||||||
|
cache: AuthorsRelaysCache,
|
||||||
|
filter: ReqFilter,
|
||||||
|
pickN?: number,
|
||||||
|
): Array<RelayTaggedFilter> {
|
||||||
const authors = filter.authors;
|
const authors = filter.authors;
|
||||||
if ((authors?.length ?? 0) === 0) {
|
if ((authors?.length ?? 0) === 0) {
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user