From eb5b0c25b66449ef38a02e39ab4f3c6ec3db717a Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 10 Sep 2019 16:22:54 +0100 Subject: [PATCH] 'for_url' -> 'url_for', '_ap_self._id' -> '_ap_self_id' --- modules/fediverse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fediverse.py b/modules/fediverse.py index 80dcafdf..c14ab29a 100644 --- a/modules/fediverse.py +++ b/modules/fediverse.py @@ -142,7 +142,7 @@ class Module(ModuleManager.BaseModule): def _ap_self(self): our_username = self.bot.get_setting("fediverse", None) return _parse_username(our_username) - def _ap_self_id(self, for_url, our_username): + def _ap_self_id(self, url_for, our_username): return "https://%s" % url_for("api", "ap-user", {"u": our_username}) @@ -177,7 +177,7 @@ class Module(ModuleManager.BaseModule): our_username, our_instance = self._ap_self() username = event["params"].get("u", None) if username and username == our_username: - self_id = self._ap_self._id(event["url_for"], our_username) + self_id = self._ap_self_id(event["url_for"], our_username) inbox = event["url_for"]("api", "ap-inbox", {"u": our_username}) cert_filename = self.bot.config["tls-certificate"]