Skip to content

Commit

Permalink
fix: update username handling in html reconstruction
Browse files Browse the repository at this point in the history
HTML reconstruction previously returned an empty string for the
username and twitter URL suffix.

Refs: #52
  • Loading branch information
0x62 authored and karashiiro committed Sep 4, 2023
1 parent e9e1e8f commit d0a1588
Show file tree
Hide file tree
Showing 2 changed files with 4,613 additions and 4,685 deletions.
4 changes: 2 additions & 2 deletions src/timeline-tweet-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function linkHashtagHtml(hashtag: string) {
}

function linkUsernameHtml(username: string) {
return `<a href="https://twitter.com/${username[0].replace('@', '')}">${
username[0]
return `<a href="https://twitter.com/${username.replace('@', '')}">${
username
}</a>`;
}

Expand Down
Loading

0 comments on commit d0a1588

Please sign in to comment.