packages/misskey-forwarder: fix renote link

This commit is contained in:
2025-12-26 12:38:29 +08:00
parent a1b4aa7803
commit bf922747d5

View File

@@ -45,7 +45,7 @@ int main()
if (content.type != "note" || content.body.note.visibility != "public") return; if (content.type != "note" || content.body.note.visibility != "public") return;
std::string text = content.body.note.text; std::string text = content.body.note.text;
if (content.body.note.renote) if (content.body.note.renote)
text += "\n🔁 Renote: https://{}/notes/{}"_f(content.server, content.body.note.renote->id); text += "\n🔁 Renote: {}/notes/{}"_f(content.server, content.body.note.renote->id);
TgBot::Bot bot(config.TelegramBotToken); TgBot::Bot bot(config.TelegramBotToken);
bot.getApi().sendMessage(config.TelegramChatId, text); bot.getApi().sendMessage(config.TelegramChatId, text);