1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-04-17 03:02:07 -04:00

Expose username as HTML attribute

Fixes #551
This commit is contained in:
Zed
2025-11-24 23:04:25 +01:00
parent 53edbbc4e9
commit 25df682094
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ proc renderThread(thread: Tweets; prefs: Prefs; path: string): VNode =
index=i, last=(i == thread.high), showThread=show)
proc renderUser(user: User; prefs: Prefs): VNode =
buildHtml(tdiv(class="timeline-item")):
buildHtml(tdiv(class="timeline-item", data-username=user.username)):
a(class="tweet-link", href=("/" & user.username))
tdiv(class="tweet-body profile-result"):
tdiv(class="tweet-header"):