pass exports
to ap_server.py
This commit is contained in:
parent
f12551532f
commit
ec4501c018
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue