diff --git a/modules/fediverse/__init__.py b/modules/fediverse/__init__.py index 6d3c78ea..6e5ef5bc 100644 --- a/modules/fediverse/__init__.py +++ b/modules/fediverse/__init__.py @@ -27,7 +27,8 @@ class Module(ModuleManager.BaseModule): raise ValueError("`tls-certificate` not provided in bot config") server_username, instance = ap_utils.split_username(server_username) - self.server = ap_server.Server(self.bot, server_username, instance) + self.server = ap_server.Server(self.bot, self.exports, + server_username, instance) self.events.on("api.get.ap-webfinger").hook( self.server.ap_webfinger, authenticated=False) diff --git a/modules/fediverse/ap_server.py b/modules/fediverse/ap_server.py index decf0009..0df2eac5 100644 --- a/modules/fediverse/ap_server.py +++ b/modules/fediverse/ap_server.py @@ -6,8 +6,9 @@ from . import ap_activities, ap_actor, ap_security, ap_utils ACTIVITY_SETTING_PREFIX = "ap-activity-" class Server(object): - def __init__(self, bot, username, instance): + def __init__(self, bot, exports, username, instance): self.bot = bot + self.exports = exports self.username = username self.instance = instance