From 72fa9c8c217cdd5cf460aa02d18193c971deb4d4 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 27 Nov 2020 13:12:55 +0100 Subject: [PATCH] debug --- run.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.py b/run.py index f000f6b..9880f42 100644 --- a/run.py +++ b/run.py @@ -37,7 +37,7 @@ APP = flask.Flask(__name__) def index(): """ Displays the index page accessible at '/' """ - content = 'This ActivityPub Server is running !!! (exciting): ({ domain })'.format(domain=DOMAIN) + content = 'This ActivityPub Server is running !!! (exciting): ({})'.format(DOMAIN) return content @APP.route('/.well-known/webfinger', methods=['GET']) @@ -87,10 +87,10 @@ def inbox(actor): """ if flask.request.method == 'GET': - return '''This has been a { mode } request.
- It came with the following header:

{ headers }

- You have searched for the actor { actor }.
- This is { domain }'s shared inbox:

{ inbox }'''.format(mode=flask.request.method, headers=flask.request.headers, actor=actor, somain=DOMAIN, inbox=str(INBOX)) + return '''This has been a {} request.
+ It came with the following header:

{}

+ You have searched for the actor {}.
+ This is {}'s shared inbox:

{}'''.format(flask.request.method, flask.request.headers, actor, DOMAIN, str(INBOX)) if flask.request.method == 'POST': INBOX.append(flask.request.data)