fix #496 #498

Merged
vivganes merged 8 commits from patch-496 into main 2023-04-08 10:38:29 +00:00
2 changed files with 7 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import { RootState } from "State/Store";
import { UserCache } from "Cache/UserCache";
import messages from "./messages";
interface BookmarksProps {
pubkey: HexKey;
bookmarks: readonly TaggedRawEvent[];

View File

@ -91,7 +91,13 @@ function RelaysTab({ id }: { id: HexKey }) {
function BookMarksTab({ id }: { id: HexKey }) {
const bookmarks = useBookmarkFeed(id);
return <Bookmarks pubkey={id} bookmarks={bookmarks} related={bookmarks} />;
return (
<Bookmarks
pubkey={id}
bookmarks={bookmarks.filter(e => e.kind === EventKind.TextNote)}
related={bookmarks.filter(e => e.kind !== EventKind.TextNote)}
/>
);
}
export default function ProfilePage() {