microlinkhq / unavatar

Get unified user avatar from social networks, including Instagram, SoundCloud, Telegram, Twitter, YouTube & more.
https://unavatar.io
MIT License
1.21k stars 70 forks source link

tiktok default image in 404 case #293

Closed grabowskiadrian closed 9 months ago

grabowskiadrian commented 10 months ago

Unavatar returns a tiktok image even if the user does not exist.

This is a problem with tiktok provider.

You are checking:

$('meta[property="og:image"]').attr('content')

on tiktok response. But this tag occurs with 404.

Examples: https://www.tiktok.com/@invalid_user_i_think https://unavatar.io/invalid_user_i_think?fallback=false -> returns tiktok image, should 404

Kikobeats commented 9 months ago

Hello, I'm not be able to reproduce this anymore in the last unavatar version

CleanShot 2023-12-28 at 13 02 52@2x

🙂