Change AP_DOMAIN default to federation.rose-ash.com
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -114,7 +114,7 @@ async def on_any_activity(activity: APActivity, session: AsyncSession) -> None:
|
|||||||
if not services.has("federation"):
|
if not services.has("federation"):
|
||||||
return
|
return
|
||||||
|
|
||||||
domain = os.getenv("AP_DOMAIN", "rose-ash.com")
|
domain = os.getenv("AP_DOMAIN", "federation.rose-ash.com")
|
||||||
|
|
||||||
# Load actor with private key
|
# Load actor with private key
|
||||||
actor = (
|
actor = (
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ from shared.contracts.dtos import (
|
|||||||
|
|
||||||
|
|
||||||
def _domain() -> str:
|
def _domain() -> str:
|
||||||
return os.getenv("AP_DOMAIN", "rose-ash.com")
|
return os.getenv("AP_DOMAIN", "federation.rose-ash.com")
|
||||||
|
|
||||||
|
|
||||||
def _get_origin_app() -> str | None:
|
def _get_origin_app() -> str | None:
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ async def try_publish(
|
|||||||
# Stable object ID within a publish cycle. After Delete + re-Create
|
# Stable object ID within a publish cycle. After Delete + re-Create
|
||||||
# we append a version suffix so remote servers (Mastodon) treat it as
|
# we append a version suffix so remote servers (Mastodon) treat it as
|
||||||
# a brand-new post rather than ignoring the tombstoned ID.
|
# a brand-new post rather than ignoring the tombstoned ID.
|
||||||
domain = os.getenv("AP_DOMAIN", "rose-ash.com")
|
domain = os.getenv("AP_DOMAIN", "federation.rose-ash.com")
|
||||||
base_object_id = (
|
base_object_id = (
|
||||||
f"https://{domain}/users/{actor.preferred_username}"
|
f"https://{domain}/users/{actor.preferred_username}"
|
||||||
f"/objects/{source_type.lower()}/{source_id}"
|
f"/objects/{source_type.lower()}/{source_id}"
|
||||||
|
|||||||
Reference in New Issue
Block a user