shorten sub id

This commit is contained in:
Alejandro Gomez 2023-01-28 20:05:11 +01:00
parent 152970288d
commit ddec154fcb
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -8,7 +8,7 @@ import useSubscription, { NoteStore } from "Feed/Subscription";
export default function useMutedFeed(pubkey: HexKey) {
const sub = useMemo(() => {
let sub = new Subscriptions();
sub.Id = `muted:${pubkey}`;
sub.Id = `muted:${pubkey.slice(0, 12)}`;
sub.Kinds = new Set([EventKind.Lists]);
sub.Authors = new Set([pubkey]);
sub.DTag = Lists.Muted;