From 5aa8deb47b4aa589c34455896f68cc765a96f9c7 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Wed, 10 Feb 2021 23:31:29 -0500 Subject: [PATCH] make sure avatar is served in https, fix #87 --- src/BirdsiteLive.Twitter/TwitterUserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BirdsiteLive.Twitter/TwitterUserService.cs b/src/BirdsiteLive.Twitter/TwitterUserService.cs index dd80c4d..2370cea 100644 --- a/src/BirdsiteLive.Twitter/TwitterUserService.cs +++ b/src/BirdsiteLive.Twitter/TwitterUserService.cs @@ -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