This commit is contained in:
Shusui MOYATANI
2023-03-12 13:33:35 +09:00
parent 0e62c4d167
commit bec8352746
18 changed files with 382 additions and 267 deletions

View File

@@ -69,6 +69,19 @@ const Home: Component = () => {
})),
);
const { events: myReactions } = useSubscription(() =>
ensureNonNull([pubkey()] as const)(([pubkeyNonNull]) => ({
relayUrls: config().relayUrls,
filters: [
{
kinds: [7],
authors: [pubkeyNonNull],
limit: 25,
},
],
})),
);
const { events: notifications } = useSubscription(() =>
ensureNonNull([pubkey()] as const)(([pubkeyNonNull]) => ({
relayUrls: config().relayUrls,
@@ -136,6 +149,9 @@ const Home: Component = () => {
<Column name="自分の投稿" columnIndex={4} lastColumn width="medium">
<Timeline events={myPosts()} />
</Column>
<Column name="自分のいいね" columnIndex={4} lastColumn width="medium">
<Notification events={myReactions()} />
</Column>
</div>
</div>
);