From 24ef229e3ecb3c3fe8a62d761f020a23e645b6b7 Mon Sep 17 00:00:00 2001 From: Mohammad Mahdi Mohammadi Date: Sat, 14 Sep 2024 19:39:37 +0330 Subject: [PATCH] Minor change --- Services/HandlePostAction.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/HandlePostAction.cs b/Services/HandlePostAction.cs index 7dce80e..7b0076b 100644 --- a/Services/HandlePostAction.cs +++ b/Services/HandlePostAction.cs @@ -44,7 +44,7 @@ namespace mstdnCats.Services if (updated) { // Send the media attachment to the channel - await _bot.SendPhotoAsync(Environment.GetEnvironmentVariable("CHANNEL_NUMID"), post.MediaAttachments.First().Url, caption: $"Message from " + $"" + post.Account.DisplayName + " ", parseMode: ParseMode.Html + await _bot.SendPhotoAsync(Environment.GetEnvironmentVariable("CHANNEL_NUMID"), post.MediaAttachments.First().Url, caption: $"Post from " + $"" + post.Account.DisplayName + " ", parseMode: ParseMode.Html , replyMarkup: new InlineKeyboardMarkup(InlineKeyboardButton.WithUrl("View on Mastodon", post.Url))); await _bot.AnswerCallbackQueryAsync(callbackQuery.Id, "Media attachment approved and sent to channel.");