Event JSON
{
"id": "3f4bb3cdf26e5975537465a67f9684132a6f60cc13f19e6bc93ab5feb07c9776",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1717620913,
"kind": 1,
"tags": [
[
"imeta",
"url https://image.nostr.build/4145661101e8f200b35a249ba9a3acb175d71fe424fd2808649ac0636a4d0a25.png",
"m image/png",
"x 12b84a9eff9d9bbbcfebb1d428b252bffb72e9a23ea3e76d1c825fa9f3fce84a",
"ox 4145661101e8f200b35a249ba9a3acb175d71fe424fd2808649ac0636a4d0a25",
"size 15946",
"dim 326x336",
"blurhash L343So*Gt*bEt*o|kBWBofoMfPay"
],
[
"imeta",
"url https://image.nostr.build/3b65fdd0e09f32f04b9338daee1c4a003e80086c311ac8e636b8de3485de163b.png",
"m image/png",
"x 19fb01ea9238dec1f86571aaffde36313779945d1ac6845a196326b8c110ae29",
"ox 3b65fdd0e09f32f04b9338daee1c4a003e80086c311ac8e636b8de3485de163b",
"size 49606",
"dim 973x875",
"blurhash L05E{c~qi{RC-;spjGj[xCR6nlxt"
],
[
"t",
"ditto"
],
[
"t",
"t"
],
[
"t",
"t"
],
[
"t",
"p"
],
[
"t",
"r"
]
],
"content": "This trending hashtag algorithm in #Ditto works by querying the database every hour and publishing a Label event with the top hashtags.\n\nThen to display it, we get the most recent Label, then get a 7-day history for each of those tags.\n\nCheck trends with:\n\nnak req -k 1985 -t L=pub.ditto.trends -t l=\"#t\" -a db0e60d10b9555a39050c258d460c5c461f6d18f467aa9f62de1a728b8a891a4 wss://gleasonator.dev/relay\n\nChange #t to #p for trending users, or #r for trending links.\n\nhttps://image.nostr.build/4145661101e8f200b35a249ba9a3acb175d71fe424fd2808649ac0636a4d0a25.png\nhttps://image.nostr.build/3b65fdd0e09f32f04b9338daee1c4a003e80086c311ac8e636b8de3485de163b.png",
"sig": "a0bbff94cd04858af0815dd33a81b8dc9315f10073f3705c14b78e0c5fcea6f82e506185f0d29f918959b1c661402a1d35593b0a4fface27580f4b938314eb43"
}