aboutsummaryrefslogtreecommitdiff
path: root/modules/tweets.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-07 10:07:11 +0000
committerGravatar jesopo2019-02-07 10:07:11 +0000
commit90591ec5b4e010b14428c9eef33f1f1a5aa9a262 (patch)
tree63e24131525778c5e790a65a70aa67d4e0db27a6 /modules/tweets.py
parentImplement `Exports.get_one()` (diff)
signature
Change isgd.py to use Exports to offer url shortening, not events
Diffstat (limited to 'modules/tweets.py')
-rw-r--r--modules/tweets.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/tweets.py b/modules/tweets.py
index 73091171..55cf28e4 100644
--- a/modules/tweets.py
+++ b/modules/tweets.py
@@ -64,8 +64,7 @@ class Module(ModuleManager.BaseModule):
tweet_link = "https://twitter.com/%s/status/%s" % (username,
linked_id)
- short_url = self.events.on("get.shortlink").call_for_result(
- url=tweet_link)
+ short_url = self.exports.get_one("shortlink")(tweet_link)
short_url = " - %s" % short_url if short_url else ""
if "retweeted_status" in tweet: