Skip to content

Commit

Permalink
fix followings
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Dec 8, 2023
1 parent 6e52a2e commit 062ecd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2134,13 +2134,14 @@ const API = {
const out = {
list: list.filter(e => e.entryId.startsWith('user-')).map(e => {
let user = e.content.itemContent.user_results.result;
if(!user) return;
user.legacy.id_str = user.rest_id;
if(user.is_blue_verified && !user.legacy.verified_type) {
user.legacy.verified = true;
user.legacy.verified_type = "Blue";
}
return user.legacy;
}),
}).filter(e => e),
cursor: list.find(e => e.entryId.startsWith('cursor-bottom-')).content.value
}
debugLog('user.getFollowing', 'end', out);
Expand Down

0 comments on commit 062ecd3

Please sign in to comment.