From 128225b473abf91ac403a0680ccc441cdf9454ec Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 27 Nov 2023 16:56:06 +0000 Subject: [PATCH] fix: torrents by author --- src/element/trending.tsx | 4 ++-- src/page/profile.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ( <> - + ); }