mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Re-add support for "extra inboxes"
This allow to start posting public activities to other instances without follower.
This commit is contained in:
parent
354a9ad13f
commit
f7e6d37dce
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@ from config import ME
|
|||
from config import USER_AGENT
|
||||
from config import USERNAME
|
||||
from config import MEDIA_CACHE
|
||||
from config import EXTRA_INBOXES
|
||||
from utils.media import Kind
|
||||
from little_boxes import activitypub as ap
|
||||
from little_boxes import strtobool
|
||||
|
@ -65,6 +66,9 @@ class MicroblogPubBackend(Backend):
|
|||
"""Setup a custom user agent."""
|
||||
return USER_AGENT
|
||||
|
||||
def extra_inboxes(self) -> List[str]:
|
||||
return EXTRA_INBOXES
|
||||
|
||||
def base_url(self) -> str:
|
||||
"""Base URL config."""
|
||||
return BASE_URL
|
||||
|
|
|
@ -70,7 +70,7 @@ with open(os.path.join(KEY_DIR, "me.yml")) as f:
|
|||
SUMMARY = conf["summary"]
|
||||
ICON_URL = conf["icon_url"]
|
||||
PASS = conf["pass"]
|
||||
PUBLIC_INSTANCES = conf.get("public_instances", [])
|
||||
EXTRA_INBOXES = conf.get("extra_inboxes", [])
|
||||
|
||||
# Theme-related config
|
||||
theme_conf = conf.get("theme", {})
|
||||
|
|
Loading…
Reference in a new issue