]> PatchyGit - angel.git/commitdiff
add embedded file url to recent links list
authorKaio Cesar <kaio@artnew.com.br>
Mon, 8 Jan 2024 18:59:06 +0000 (15:59 -0300)
committerKaio Cesar <kaio@artnew.com.br>
Mon, 8 Jan 2024 18:59:06 +0000 (15:59 -0300)
closes #9

main.py

diff --git a/main.py b/main.py
index 9f69ee8..0d00eb3 100644 (file)
--- a/main.py
+++ b/main.py
@@ -193,6 +193,7 @@ class AngelBot(ClientXMPP):
         furl = await self.plugin["xep_0363"].upload_file(\r
             fname, content_type=ftype, input_file=outfile\r
         )\r
+        self.messages[sender]["links"].add(furl)\r
         message = self.make_message(sender)\r
         message["body"] = furl\r
         message["type"] = mtype\r