Skip to content

Commit

Permalink
fix tweeting
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Sep 8, 2023
1 parent aba5822 commit 6f130bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ async function renderProfile() {
if(pageUser.id_str === user.id_str) {
if((pageUser.verified_type === "Blue" || pageUser.verified) && !localStorage.alwaysThinkUreNotBlueVerified) {
localStorage.OTisBlueVerified = true;
} else if(localStorage.OTisBlueVerified) {
} else if(localStorage.OTisBlueVerified && localStorage.OTisBlueVerified !== "always") {
delete localStorage.OTisBlueVerified;
}
buttonsElement.innerHTML = /*html*/`
Expand Down
3 changes: 2 additions & 1 deletion scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2480,7 +2480,8 @@ const API = {
if (data.errors && data.errors[0]) {
return reject(data.errors[0].message);
}
let result = data.data.create_tweet.tweet_results.result;
let ct = data.data.create_tweet ? data.data.create_tweet : data.data.notetweet_create;
let result = ct.tweet_results.result;
let tweet = result.legacy;
tweet.id_str = result.rest_id;
tweet.user = result.core.user_results.result.legacy;
Expand Down

0 comments on commit 6f130bb

Please sign in to comment.