Skip to content

Commit

Permalink
fix #540
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 16, 2023
1 parent 123cf00 commit b0a5e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function parseTweet(res) {
}
if(tweet.retweeted_status_result) {
let result = tweet.retweeted_status_result.result;
if(result.limitedActionResults) {
if(result.limitedActionResults && result.tweet && result.tweet.legacy) {
let limitation = result.limitedActionResults.limited_actions.find(l => l.action === "Reply");
if(limitation) {
result.tweet.legacy.limited_actions_text = limitation.prompt ? limitation.prompt.subtext.text : LOC.limited_tweet.message;
Expand Down

0 comments on commit b0a5e60

Please sign in to comment.