fix: dont alter followed tags

This commit is contained in:
Alejandro Gomez
2023-07-25 16:30:53 +02:00
parent 0d9a5b3b86
commit feab147fb9
2 changed files with 9 additions and 8 deletions

View File

@ -21,8 +21,7 @@ export default function useFollows(pubkey: string, leaveOpen = false) {
sub
);
const contacts = (data?.tags ?? []).filter((t) => t.at(0) === "p");
const relays = JSON.parse(data?.content ?? "{}");
return { contacts, relays };
return { tags: data?.tags ?? [], relays };
}