diff options
author | Andrew Godwin | 2022-12-10 13:24:49 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-10 13:24:49 -0700 |
commit | 602e5a378057f3cd5ca355fd3ed2a17fcc147c72 (patch) | |
tree | eaa950ac15e45a4a900ce7fa0fed400fadf50a17 /users/models/identity.py | |
parent | fd5250059118a3f6932b4d39a085164b10577706 (diff) | |
download | takahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.tar.gz takahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.tar.bz2 takahe-602e5a378057f3cd5ca355fd3ed2a17fcc147c72.zip |
Add system actor and shared inbox
Diffstat (limited to 'users/models/identity.py')
-rw-r--r-- | users/models/identity.py | 4 |
1 files changed, 4 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) ### |