Exemplo n.º 1
0
        private void FollowAccount(MastodonClient client, string token, Account mastodonAccount)
        {
            var userId = mastodonAccount.acct;

            if (!userId.Contains("@"))
            {
                userId = $"@{mastodonAccount.acct}@{_instanceNameSource}";
            }

            try
            {
                client.FollowRemote(userId, token);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }