This commit is contained in:
Shusui MOYATANI
2023-03-24 22:30:39 +09:00
parent 1a96bca1ac
commit 904c5a547c
12 changed files with 313 additions and 117 deletions

View File

@@ -15,6 +15,7 @@ import Column from '@/components/Column';
import SideBar from '@/components/SideBar';
import Timeline from '@/components/Timeline';
import Notification from '@/components/Notification';
import ProfileDisplay from '@/components/ProfileDisplay';
import usePool from '@/nostr/usePool';
import useConfig from '@/nostr/useConfig';
@@ -24,10 +25,11 @@ import usePubkey from '@/nostr/usePubkey';
import { useMountShortcutKeys } from '@/hooks/useShortcutKeys';
import usePersistStatus from '@/hooks/usePersistStatus';
import ensureNonNull from '@/utils/ensureNonNull';
import ProfileDisplay from '@/components/ProfileDisplay';
import useModalState from '@/hooks/useModalState';
import ensureNonNull from '@/utils/ensureNonNull';
import epoch from '@/utils/epoch';
const Home: Component = () => {
useMountShortcutKeys();
const navigate = useNavigate();
@@ -118,7 +120,7 @@ const Home: Component = () => {
{
kinds: [1, 6],
limit: 25,
since: Math.floor(Date.now() / 1000) - 12 * 60 * 60,
since: epoch() - 12 * 60 * 60,
},
],
}));
@@ -131,7 +133,7 @@ const Home: Component = () => {
kinds: [1],
search: '#nostrstudy',
limit: 25,
since: Math.floor(Date.now() / 1000) - 12 * 60 * 60,
since: epoch() - 12 * 60 * 60,
},
],
}));