mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:06:40 +08:00

By default, Twitter will return the URL for the avatar image of the tweet poster as the `og:image` value. However, if the `user_generated` attribute is true, we should not use this as the avatar URL as this will be an URL of an image in the tweet itself (e.g., an image belonging to a tweeted news story).