diff --git a/src/components/content/videos/VideoDetails.js b/src/components/content/videos/VideoDetails.js index 7025135..de436a7 100644 --- a/src/components/content/videos/VideoDetails.js +++ b/src/components/content/videos/VideoDetails.js @@ -51,10 +51,6 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au } }, [zaps, processedEvent]); - useEffect(() => { - console.log("author", author); - }, [author]); - const handleDelete = async () => { try { const response = await axios.delete(`/api/resources/${processedEvent.d}`); diff --git a/testr.js b/testr.js new file mode 100644 index 0000000..e4cfb27 --- /dev/null +++ b/testr.js @@ -0,0 +1,21 @@ +const event = { + id: '123', + content: 'encrypted_blob', + created_at: 1714857600, + kind: 30804, + pubkey: 'pubkey', + tags: [ + ["title", "title"], + ["summary", "summary"], + ["image", "image"], + ["published_at", "published_at"], + ["price", "price"], + // This is an array in the format [ "price", "<number>", "<currency>", "<frequency>" ]. + // "price" is the name of the tag + // "<number>" is the amount in numeric format (but included in the tag as a string) + // "<currency>" is the currency unit in 3-character ISO 4217 format or ISO 4217-like currency code (e.g. "btc", "eth"). + // "<frequency>" is optional and can be used to describe recurring payments. SHOULD be in noun format (hour, day, week, month, year, etc.) + ["location", "https://plebdevs.com/.well-known/lnurlp/austin/1234"], + ], + sig: 'sig' +};