diff --git a/src/element/trending.tsx b/src/element/trending.tsx index 73d801d..5b19628 100644 --- a/src/element/trending.tsx +++ b/src/element/trending.tsx @@ -3,9 +3,9 @@ import { TorrentKind } from "../const"; import { useRequestBuilder } from "@snort/system-react"; import { TorrentList } from "./torrent-list"; -export function LatestTorrents() { +export function LatestTorrents({ author }: { author?: string }) { const sub = new RequestBuilder("torrents:latest"); - sub.withFilter().kinds([TorrentKind]).limit(100); + sub.withFilter().kinds([TorrentKind]).authors(author ? [author] : undefined).limit(100); const latest = useRequestBuilder(NoteCollection, sub); diff --git a/src/page/profile.tsx b/src/page/profile.tsx index 0f60ce4..0906b55 100644 --- a/src/page/profile.tsx +++ b/src/page/profile.tsx @@ -13,7 +13,7 @@ export function ProfilePage() { return ( <> - + ); }