chore: formatting

This commit is contained in:
Kieran 2023-11-27 17:11:17 +00:00
parent 5a38ea284a
commit f5784534d6
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 22 additions and 20 deletions

View File

@ -1,15 +1,14 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:url" content="https://dtan.xyz">
<meta property="og:url" content="https://dtan.xyz" />
<meta name="og:title" content="DTAN.XYZ" />
<meta name="og:description" content="Torrents on Nostr" />
<meta name="og:type" content="website" />
<meta name="og:image" content="/banner.jpg" />
<meta name="description" content="Torrents on Nostr">
<meta name="description" content="Torrents on Nostr" />
<link rel="icon" href="/logo_32.png" />
<title>DTAN.XYZ</title>
</head>
@ -18,5 +17,4 @@
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

View File

@ -5,7 +5,11 @@ import { TorrentList } from "./torrent-list";
export function LatestTorrents({ author }: { author?: string }) {
const sub = new RequestBuilder(`torrents:latest:${author}`);
sub.withFilter().kinds([TorrentKind]).authors(author ? [author] : undefined).limit(100);
sub
.withFilter()
.kinds([TorrentKind])
.authors(author ? [author] : undefined)
.limit(100);
const latest = useRequestBuilder(NoteCollection, sub);