This commit is contained in:
Doug Hoyte
2023-09-28 16:55:42 -04:00
parent 806dd74d4e
commit ea6ca634ce
2 changed files with 5 additions and 8 deletions

View File

@ -19,7 +19,6 @@
body { body {
font-family: sans-serif; font-family: sans-serif;
line-height: 1.2;
} }
a:link, a:visited { a:link, a:visited {
@ -331,6 +330,8 @@ table.vert {
.info-page { .info-page {
line-height: 1.2;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;

View File

@ -67,7 +67,7 @@ document.addEventListener('alpine:init', () => {
let ev = { let ev = {
created_at: Math.floor(((new Date()) - 0) / 1000), created_at: Math.floor(((new Date()) - 0) / 1000),
kind: 1, kind: 1,
tags: [['t', 'oddbean']], tags: [['t', 'oddbean'],['client', 'oddbean']],
content: this.$refs.post.value, content: this.$refs.post.value,
}; };
@ -105,7 +105,7 @@ document.addEventListener('alpine:init', () => {
let ev = { let ev = {
created_at: Math.floor(((new Date()) - 0) / 1000), created_at: Math.floor(((new Date()) - 0) / 1000),
kind: 1, kind: 1,
tags: [], tags: [['client', 'oddbean']],
content: this.$refs.post.value, content: this.$refs.post.value,
}; };
@ -195,7 +195,7 @@ document.addEventListener("click", async (e) => {
let ev = { let ev = {
created_at: Math.floor(((new Date()) - 0) / 1000), created_at: Math.floor(((new Date()) - 0) / 1000),
kind: 7, kind: 7,
tags: [], tags: [['client', 'oddbean']],
content: which === 'u' ? '+' : '-', content: which === 'u' ? '+' : '-',
}; };
@ -203,10 +203,6 @@ 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) {
// 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]);
} }