diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2021-12-14 11:05:58 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2021-12-14 11:22:37 +0100 |
commit | 4f6bc9073ea24b911de038cbf94395789bf63fa9 (patch) | |
tree | 8d54bacba7138d34453e73413e0c66d7a5d57bbf /plugins/embed.py | |
parent | 88db537027e41280f43ba661325051a1f04055f1 (diff) | |
download | poezio-4f6bc9073ea24b911de038cbf94395789bf63fa9.tar.gz poezio-4f6bc9073ea24b911de038cbf94395789bf63fa9.tar.bz2 poezio-4f6bc9073ea24b911de038cbf94395789bf63fa9.tar.xz poezio-4f6bc9073ea24b911de038cbf94395789bf63fa9.zip |
/upload to original tab and not current tab (thanks jonas)"
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'plugins/embed.py')
-rw-r--r-- | plugins/embed.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/embed.py b/plugins/embed.py index 3ce2a9d3..4a68f035 100644 --- a/plugins/embed.py +++ b/plugins/embed.py @@ -29,8 +29,8 @@ class Plugin(BasePlugin): help='Embed an image url into the contact\'s client', usage='<image_url>') - def embed_image_url(self, url): - tab = self.api.current_tab() + def embed_image_url(self, url, tab=None): + tab = tab or self.api.current_tab() message = self.core.xmpp.make_message(tab.jid) message['body'] = url message['oob']['url'] = url |