More tests and bugfixes

This commit is contained in:
Thomas Sileo
2018-05-27 22:30:43 +02:00
parent 7a8621e72e
commit 942d12a7c7
3 changed files with 75 additions and 23 deletions

3
app.py
View File

@@ -810,10 +810,11 @@ def api_new_note():
return Response(
status=201,
response='OK',
headers={'Microblogpub-Created-Activity': created.id},
headers={'Microblogpub-Created-Activity': create.id},
)
@app.route('/api/stream')
@api_required
def api_stream():
return Response(
response=json.dumps(activitypub.build_inbox_json_feed('/api/stream', request.args.get('cursor'))),