Track up to 5 tags max per post

This commit is contained in:
Alex Gleason 2023-07-26 09:40:52 -05:00
parent c88e58344f
commit 7eedeef2b4
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@ function trackHashtags(event: Event): void {
const tags = event.tags
.filter((tag) => tag[0] === 't')
.map((tag) => tag[1]);
.map((tag) => tag[1])
.slice(0, 5);
if (!tags.length) return;