Skip to content

Commit

Permalink
feat: make username searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 10, 2024
1 parent 3cedefd commit 404ad23
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
return data;
}
content = row['tweet'] ? row['tweet'] : '';
username = row['user'] ? row['user'] : '_';
return '<blockquote class="twitter-tweet">' + content + '<a href="https://twitter.com/' + username + '/status/' + data + '"></a></blockquote>';
return '<blockquote class="twitter-tweet">' + content + '<a href="https://twitter.com/_/status/' + data + '"></a></blockquote>';
}
},
{
Expand All @@ -70,6 +69,12 @@ Proposed [Twitter community notes](https://twitter.com/i/communitynotes/download
{
data: 'reasons'
},
{
data: 'user',
searchable: true,
visible: false,
defaultContent: ''
},
{
data: 'tweet',
searchable: true,
Expand Down

0 comments on commit 404ad23

Please sign in to comment.