OSDN Git Service

preferredのタイプミスを修正
authorKimura Youichi <kim.upsilon@bucyou.net>
Thu, 13 Jun 2024 16:25:12 +0000 (01:25 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Thu, 13 Jun 2024 16:25:12 +0000 (01:25 +0900)
OpenTween/SocialProtocol/AccountCollection.cs
OpenTween/Tween.cs

index 8ff6004..7bc8823 100644 (file)
@@ -108,12 +108,12 @@ namespace OpenTween.SocialProtocol
             return this.Primary;
         }
 
-        public ISocialAccount? GetAccountForPostId(PostId postId, AccountKey? preferedAccountKey)
+        public ISocialAccount? GetAccountForPostId(PostId postId, AccountKey? preferredAccountKey)
         {
-            if (preferedAccountKey != null && this.accounts.TryGetValue(preferedAccountKey.Value, out var preferedAccount))
+            if (preferredAccountKey != null && this.accounts.TryGetValue(preferredAccountKey.Value, out var preferredAccount))
             {
-                if (preferedAccount.CanUsePostId(postId))
-                    return preferedAccount;
+                if (preferredAccount.CanUsePostId(postId))
+                    return preferredAccount;
             }
 
             var primaryAccount = this.Primary;
index 42b425d..559dc16 100644 (file)
@@ -9004,8 +9004,8 @@ namespace OpenTween
 
         public ISocialAccount? GetAccountForPostId(PostId postId)
         {
-            var preferedAccountKey = this.CurrentTab.SourceAccountKey;
-            return this.accounts.GetAccountForPostId(postId, preferedAccountKey);
+            var preferredAccountKey = this.CurrentTab.SourceAccountKey;
+            return this.accounts.GetAccountForPostId(postId, preferredAccountKey);
         }
 
         /// <summary>