Compare commits
1 Commits
0e89dbee55
...
30b5a1438b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30b5a1438b |
@@ -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