Include Atom URL in the Actor view.

trilby
Marnanel Thurman 2019-10-05 16:00:25 +01:00
rodzic 25313d0122
commit 5f9dcdd98b
1 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -378,6 +378,12 @@ class ActorView(ThingView):
'name': self._username,
'host': settings.KEPI['LOCAL_OBJECT_HOSTNAME'],
}))
atom_url = settings.KEPI['USER_FEED_URLS'].format(
username = self._username,
hostname = settings.KEPI['LOCAL_OBJECT_HOSTNAME'],
)
links = [
{
'url': webfinger_url,
@ -385,8 +391,11 @@ class ActorView(ThingView):
'type': 'application/xrd+xml',
},
# TODO: rel: alternate, type: application/atom+xml,
# but that will be set by tophat and not kepi
{
'url': atom_url,
'rel': 'alternate',
'type': 'application/atom+xml',
},
{
'url': user_url,