From 66bbf3129f018560a72e9415765ba86fbc1bb6f7 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Wed, 27 Jan 2021 03:27:04 -0500 Subject: [PATCH 1/3] don't cache unfound accounts --- src/BirdsiteLive.Twitter/CachedTwitterService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 2fb555e7caaacf56b853a87ee5387564bc502e0d Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 28 Jan 2021 18:07:55 -0500 Subject: [PATCH 2/3] remove redundancy --- INSTALLATION.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From d5c058f6d4bcfd37dc8103d885779767e43841f2 Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Thu, 28 Jan 2021 18:11:01 -0500 Subject: [PATCH 3/3] road to 0.11.2 --- src/BirdsiteLive/BirdsiteLive.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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