make sure avatar is served in https, fix #87

This commit is contained in:
Nicolas Constant 2021-02-10 23:31:29 -05:00
parent 7fec7e765e
commit 5aa8deb47b
No known key found for this signature in database
GPG key ID: 1E9F677FB01A5688

View file

@ -64,7 +64,7 @@ namespace BirdsiteLive.Twitter
Name = user.Name,
Description = description,
Url = $"https://twitter.com/{username}",
ProfileImageUrl = user.ProfileImageUrlFullSize,
ProfileImageUrl = user.ProfileImageUrlFullSize.Replace("http://", "https://"),
ProfileBackgroundImageUrl = user.ProfileBackgroundImageUrlHttps,
ProfileBannerURL = user.ProfileBannerURL,
Protected = user.Protected