From 014c6896b1b66e9e653a783d6502bf0413a649ed Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Thu, 28 Mar 2024 05:57:28 -0400 Subject: [PATCH] some minor changes * version bump to 0.3.1 * remove debug print in frontend endpoints * remove unused json import * fix toast messages for accepting/denying follow requests --- relay/__init__.py | 2 +- relay/frontend/static/instance.js | 3 ++- relay/views/activitypub.py | 1 - relay/views/frontend.py | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/relay/__init__.py b/relay/__init__.py index 0404d81..e1424ed 100644 --- a/relay/__init__.py +++ b/relay/__init__.py @@ -1 +1 @@ -__version__ = '0.3.0' +__version__ = '0.3.1' diff --git a/relay/frontend/static/instance.js b/relay/frontend/static/instance.js index 8a4956f..a07b647 100644 --- a/relay/frontend/static/instance.js +++ b/relay/frontend/static/instance.js @@ -100,6 +100,7 @@ async function req_response(domain, accept) { } if (!accept) { + toast("Denied instance request", "message"); return; } @@ -117,7 +118,7 @@ async function req_response(domain, accept) { } }); - toast("Removed instance", "message"); + toast("Accepted instance request", "message"); } diff --git a/relay/views/activitypub.py b/relay/views/activitypub.py index fe87181..dc2115f 100644 --- a/relay/views/activitypub.py +++ b/relay/views/activitypub.py @@ -3,7 +3,6 @@ from __future__ import annotations import aputils import traceback import typing -import json from .base import View, register_route diff --git a/relay/views/frontend.py b/relay/views/frontend.py index 91af960..ae1043a 100644 --- a/relay/views/frontend.py +++ b/relay/views/frontend.py @@ -45,7 +45,6 @@ async def handle_frontend_path(request: web.Request, handler: Callable) -> Respo response = await handler(request) if not request['user'] and request['token']: - print("del token") response.del_cookie('user-token') return response