Merge pull request #498 from vivganes/patch-496

fix #496
This commit is contained in:
Kieran 2023-04-08 11:38:29 +01:00 committed by GitHub
commit eab07add8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {