fix: don't stream global feed in notifications tab (#207)

This commit is contained in:
Alejandro 2023-02-06 23:11:32 +01:00 committed by GitHub
parent 79008c5fc4
commit c928beb174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -78,6 +78,7 @@ export default function useTimelineFeed(subject: TimelineSubject, options: Timel
let latestSub = new Subscriptions();
latestSub.Authors = sub.Authors;
latestSub.HashTags = sub.HashTags;
latestSub.PTags = sub.PTags;
latestSub.Kinds = sub.Kinds;
latestSub.Search = sub.Search;
latestSub.Limit = 1;

View File

@ -16,9 +16,13 @@ export default function NotificationsPage() {
return (
<>
{pubkey ?
<Timeline subject={{ type: "ptag", items: [pubkey!], discriminator: pubkey!.slice(0, 12) }} postsOnly={false} method={"TIME_RANGE"} />
: null}
{pubkey && (
<Timeline
subject={{ type: "ptag", items: [pubkey!], discriminator: pubkey!.slice(0, 12) }}
postsOnly={false}
method={"TIME_RANGE"}
/>
)}
</>
)
}