summaryrefslogtreecommitdiffstats
path: root/users/models
diff options
context:
space:
mode:
Diffstat (limited to 'users/models')
-rw-r--r--users/models/identity.py4
-rw-r--r--users/models/system_actor.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/users/models/identity.py b/users/models/identity.py
index 21ac0fd..fe85d41 100644
--- a/users/models/identity.py
+++ b/users/models/identity.py
@@ -296,6 +296,10 @@ class Identity(StatorModel):
"mediaType": media_type_from_filename(self.image.name),
"url": self.image.url,
}
+ if self.local:
+ response["endpoints"] = {
+ "sharedInbox": f"https://{self.domain.uri_domain}/inbox/",
+ }
return response
### ActivityPub (inbound) ###
diff --git a/users/models/system_actor.py b/users/models/system_actor.py
index c4319b9..fb5a9e1 100644
--- a/users/models/system_actor.py
+++ b/users/models/system_actor.py
@@ -43,6 +43,9 @@ class SystemActor:
"id": self.actor_uri,
"type": "Application",
"inbox": self.actor_uri + "inbox/",
+ "endpoints": {
+ "sharedInbox": f"https://{settings.MAIN_DOMAIN}/inbox/",
+ },
"preferredUsername": self.username,
"url": self.profile_uri,
"as:manuallyApprovesFollowers": True,