mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 17:27:11 +00:00
reduce voting spam
This commit is contained in:
@ -203,12 +203,12 @@ document.addEventListener("click", async (e) => {
|
|||||||
let response = await fetch(`/e/${note}/raw.json`);
|
let response = await fetch(`/e/${note}/raw.json`);
|
||||||
let liked = await response.json();
|
let liked = await response.json();
|
||||||
|
|
||||||
for (let tag of liked.tags) {
|
//for (let tag of liked.tags) {
|
||||||
if (tag.length >= 2 && (tag[0] === 'e' || tag[0] === 'p')) ev.tags.push(tag);
|
// if (tag.length >= 2 && (tag[0] === 'e' || tag[0] === 'p')) ev.tags.push(tag);
|
||||||
}
|
//}
|
||||||
|
|
||||||
ev.tags.push(['e', liked.id]);
|
ev.tags.push(['e', liked.id]);
|
||||||
ev.tags.push(['p', liked.pubkey]);
|
//ev.tags.push(['p', liked.pubkey]);
|
||||||
}
|
}
|
||||||
|
|
||||||
ev = await window.nostr.signEvent(ev);
|
ev = await window.nostr.signEvent(ev);
|
||||||
|
Reference in New Issue
Block a user