Skip to content

Commit

Permalink
fix(route): threads profile pic (DIYgod#14061)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony authored Dec 16, 2023
1 parent f7f8b7a commit c576d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/v2/threads/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: `${userData.full_name} (@${userData.username}) on Threads`,
link: profileUrl(user),
image: userData.hd_profile_pic_versions.sort((a, b) => b.width - a.width)[0].url,
image: userData.hd_profile_pic_versions?.sort((a, b) => b.width - a.width)[0].url ?? userData.profile_pic_url,
description: userData.biography,
item: items,
};
Expand Down

0 comments on commit c576d1a

Please sign in to comment.