diff --git a/app/activitypub/routes.py b/app/activitypub/routes.py index 91d4af0e..b85f3c42 100644 --- a/app/activitypub/routes.py +++ b/app/activitypub/routes.py @@ -2,7 +2,7 @@ from flask_login import current_user from app import db, constants, cache, celery from app.activitypub import bp -from flask import request, current_app, abort, jsonify, json, g, url_for, redirect +from flask import request, current_app, abort, jsonify, json, g, url_for, redirect, make_response from app.activitypub.signature import HttpSignature, post_request from app.community.routes import show_community @@ -79,6 +79,14 @@ def nodeinfo(): return jsonify(nodeinfo_data) +@bp.route('/.well-known/host-meta') +@cache.cached(timeout=600) +def host_meta(): + resp = make_response(f'\n\n\n') + resp.content_type = 'application/xrd+xml; charset=utf-8' + return resp + + @bp.route('/nodeinfo/2.0') @bp.route('/nodeinfo/2.0.json') @cache.cached(timeout=600)