麻烦, 一本书,她的封面和信息能不能变,一旦变了,id就变了。id变了书 都要变。 所以创建书的时候,啥信息也不写,就是创建。然后这个id就是 索引作用。他的封面要二次索引?这太麻烦了。。。。有没有什么好的方案呢 ?
nostr_cn_dev
npub1l5r0...m9jm
Developed the following products:
- NostrBridge, 网桥转发
- TaskQ5, 分布式多任务
- NostrHTTP, nostr to http
- Postr, 匿名交友,匿名邮局
- nostrclient (Python client) .
-nostrbook, (https://nostrbook.com) 用nostr在线写书
https://www.duozhutuan.com nostrhttp demo
https://nostrbook.com 增加了点赞和评论功能。 目前评论的展示还很丑,而且没有作者的图像。 继续迭代。。。用nostr写blog或者文章(nostrbook),如果修改了内容。点赞和评论是不是就消失了。。
proxmox安装记录 https://www.nostrbook.com/books/fb423d08b09b253194c1d7df7f828b3ecce78a72caa8d00f1b172631c0e5e951 有人写书了。不过封面服务器是不是坏掉了。 图片都看不见了。
groups.0xchat.com'9567da7507bec9ee7cb36de3c513dcf2b1571a02dab748698b8fd8a4972b57cb
拉了7位。 有兴趣的下载0xchat 参加群聊共建 nostr中文社区。
拉了7位。 有兴趣的下载0xchat 参加群聊共建 nostr中文社区。
groups.0xchat.com'9567da7507bec9ee7cb36de3c513dcf2b1571a02dab748698b8fd8a4972b57cb
下载0xchat桌面版本 沟通效率加倍 。 GitHub
Releases · 0xchat-app/0xchat-app-main
Security chat app built on Nostr. Contribute to 0xchat-app/0xchat-app-main development by creating an account on GitHub.
yakihonne 的树形结构终于出来了。这个列表不错,继续补充。
let sub = pool.subscribeMany(
nostrUser
? filterRelays(nostrUser?.relays || [], relaysOnPlatform)
: relaysOnPlatform,
[
{
kinds: [6, 7],
"#e": [event.id],
},
{
kinds: [1],
"#q": [event.id],
},
{
kinds: [1],
"#e": [event.id],
},
{
kinds: [9735],
"#p": [event.pubkey],
"#e": [event.id],
},
],
yakihonne代码看 这个评论获取的是全数据。
处理数据: async onevent(event_) {
if (event_.kind === 9735) {
let sats = decodeBolt11(getBolt11(event_));
let zapper = getZapper(event_);
setZappers((prev) => {
return [...prev, zapper];
});
setZapsCount((prev) => prev + sats);
}
if (event_.kind === 7) {
setReactions((reactions_) => [...reactions_, event_]);
}
if (event_.kind === 6) {
setReposts((reposts) => [...reposts, event_]);
}
if (event_.kind === 1) {
let check_kind1 = await onEvent(event_);
if (check_kind1.checkForQuote)
setQuotes((quotes) => [...quotes, event_]);
if (check_kind1.checkForComment)
setComments((comments) => [...comments, event_]);
}
},
}
);
GitHub
yakihonne-web-app/client/src/Components/NOSTR/NotesComment.js at main · YakiHonne/yakihonne-web-app
YakiHonne web app for Nostr and Bitcoin. Contribute to YakiHonne/yakihonne-web-app development by creating an account on GitHub.
@Cody const filters: Filter[] = [
{
'#e': [event.id],
kinds: [kinds.Reaction],
limit: 500
},
{
'#e': [event.id],
kinds: [kinds.Repost],
limit: 100
}
]
点赞数 和评论数是 通过查询所有的点赞列表统计的?按照你的例子超过500其实并没有统计出来?
文章的右侧增加了评论的显示。