feat: render pubkey list mentions
This commit is contained in:
8
packages/app/src/Element/PubkeyList.tsx
Normal file
8
packages/app/src/Element/PubkeyList.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { RawEvent } from "@snort/nostr";
|
||||
import { dedupe } from "Util";
|
||||
import FollowListBase from "./FollowListBase";
|
||||
|
||||
export default function PubkeyList({ ev, className }: { ev: RawEvent; className?: string }) {
|
||||
const ids = dedupe(ev.tags.filter(a => a[0] === "p").map(a => a[1]));
|
||||
return <FollowListBase pubkeys={ids} showAbout={true} className={className} />;
|
||||
}
|
Reference in New Issue
Block a user