mirror of
https://github.com/aljazceru/rabbit.git
synced 2026-01-06 07:24:24 +01:00
update
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user