Skip to content

Commit

Permalink
update tweet page too
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 11, 2023
1 parent 45b5da6 commit f90cc0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layouts/tweet/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ async function updateRetweetsWithComments(id, c) {
} else {
document.getElementById('retweets_with_comments-more').hidden = false;
}
document.getElementById('retweets_with_comments-more').innerText = LOC.load_more.message;

for(let i in tweetRetweeters) {
await appendTweet(tweetRetweeters[i], retweetDiv);
Expand Down Expand Up @@ -789,6 +790,7 @@ setTimeout(async () => {
document.getElementById('retweets_with_comments-more').addEventListener('click', async () => {
if(!retweetCommentsCursor) return;
let id = location.pathname.match(/status\/(\d{1,32})/)[1];
document.getElementById('retweets_with_comments-more').innerText = LOC.loading_tweets.message;
updateRetweetsWithComments(id, retweetCommentsCursor);
});

Expand Down

0 comments on commit f90cc0b

Please sign in to comment.