From 0c41f0e081b372793664701f517ec579f097bc0d Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Mon, 22 Apr 2024 20:25:48 -0700 Subject: [PATCH] remove /webmention-interactive (for old Web-specific update profile button) --- web.py | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/web.py b/web.py index 29094ab..6295e83 100644 --- a/web.py +++ b/web.py @@ -644,32 +644,12 @@ def webmention_external(): if not user: error(f'No user found for domain {domain}') - if request.path == '/webmention': # exclude interactive - user.last_webmention_in = util.now() - user.put() + user.last_webmention_in = util.now() + user.put() return common.create_task('webmention', **request.form) -@app.post('/webmention-interactive') -def webmention_interactive(): - """Handler that runs interactive webmention-based requests from the web UI. - - ...eg the update profile button on user pages. - """ - source = flask_util.get_required_param('source').strip() - - try: - webmention_external() - user = Web(id=util.domain_from_link(source, minimize=False)) - flash(f'Updating profile from {user.key.id()}...') - return redirect(user.user_page_path(), code=302) - - except HTTPException as e: - flash(util.linkify(str(e.description), pretty=True)) - return redirect('/', code=302) - - @app.post(f'/queue/poll-feed') @cloud_tasks_only def poll_feed_task():