trends: notes -> #e, normalize

This commit is contained in:
Alex Gleason
2024-06-02 18:28:43 -05:00
parent 76c882d836
commit fc11e34499
2 changed files with 5 additions and 5 deletions

View File

@@ -68,7 +68,7 @@ async function getTrendingHashtags() {
return label.created_at >= since && label.created_at < until;
});
const [, , accounts, uses] = label?.tags.find(([name, value]) => name === 't' && value === hashtag) ?? [];
const [, , , accounts, uses] = label?.tags.find(([name, value]) => name === 't' && value === hashtag) ?? [];
return {
day: String(date.getTime() / 1000),
@@ -97,7 +97,7 @@ const trendingStatusesController: AppController = async (c) => {
const [label] = await store.query([{
kinds: [1985],
'#L': ['pub.ditto.trends'],
'#l': ['notes'],
'#l': ['#e'],
authors: [Conf.pubkey],
limit: 1,
}]);