forked from mirrors/bookwyrm
just use user.outbox... d'oh
This commit is contained in:
parent
73a1920886
commit
8d081548cd
1 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue