diff --git a/INSTALLATION.md b/INSTALLATION.md index 17a60f7..67cb10a 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -127,8 +127,8 @@ sudo certbot renew --dry-run Make sure you're securing your firewall correctly: ``` +sudo apt install ufw #if not installed sudo ufw app list -sudo ufw allow 'Nginx Full' sudo ufw allow 22/tcp sudo ufw allow 80/tcp sudo ufw allow 443/tcp diff --git a/src/BirdsiteLive.Twitter/CachedTwitterService.cs b/src/BirdsiteLive.Twitter/CachedTwitterService.cs index 3b2de8d..2f0be46 100644 --- a/src/BirdsiteLive.Twitter/CachedTwitterService.cs +++ b/src/BirdsiteLive.Twitter/CachedTwitterService.cs @@ -33,7 +33,7 @@ namespace BirdsiteLive.Twitter if (!_userCache.TryGetValue(username, out TwitterUser user)) { user = _twitterService.GetUser(username); - _userCache.Set(username, user, _cacheEntryOptions); + if(user != null) _userCache.Set(username, user, _cacheEntryOptions); } return user; diff --git a/src/BirdsiteLive/BirdsiteLive.csproj b/src/BirdsiteLive/BirdsiteLive.csproj index e09572c..ef50a52 100644 --- a/src/BirdsiteLive/BirdsiteLive.csproj +++ b/src/BirdsiteLive/BirdsiteLive.csproj @@ -4,7 +4,7 @@ netcoreapp3.1 d21486de-a812-47eb-a419-05682bb68856 Linux - 0.11.1 + 0.11.2