just use user.outbox... d'oh

This commit is contained in:
thricedotted 2020-02-16 16:40:48 -08:00
parent 73a1920886
commit 8d081548cd

View file

@ -30,8 +30,7 @@ def outbox(request, username):
min_id = request.GET.get('min_id') min_id = request.GET.get('min_id')
max_id = request.GET.get('max_id') max_id = request.GET.get('max_id')
outbox_path = 'https://%s%s' % (DOMAIN, request.path) query_path = user.outbox + '?'
query_path = outbox_path + '?'
# filters for use in the django queryset min/max # filters for use in the django queryset min/max
filters = {} filters = {}
# params for the outbox page id # params for the outbox page id
@ -54,7 +53,7 @@ def outbox(request, username):
'@context': 'https://www.w3.org/ns/activitystreams', '@context': 'https://www.w3.org/ns/activitystreams',
'id': collection_id, 'id': collection_id,
'type': 'OrderedCollectionPage', 'type': 'OrderedCollectionPage',
'partOf': outbox_path, 'partOf': user.outbox,
'orderedItems': [m.content for m in messages], 'orderedItems': [m.content for m in messages],
} }
if max_id: if max_id: