mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 00:49:42 +08:00
packages/misskey-forwarder: fix renote link
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user