mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-26 08:21:08 +00:00
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
This commit is contained in:
parent
0709d8deb9
commit
014c6896b1
|
@ -1 +1 @@
|
||||||
__version__ = '0.3.0'
|
__version__ = '0.3.1'
|
||||||
|
|
|
@ -100,6 +100,7 @@ async function req_response(domain, accept) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!accept) {
|
if (!accept) {
|
||||||
|
toast("Denied instance request", "message");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +118,7 @@ async function req_response(domain, accept) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
toast("Removed instance", "message");
|
toast("Accepted instance request", "message");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ from __future__ import annotations
|
||||||
import aputils
|
import aputils
|
||||||
import traceback
|
import traceback
|
||||||
import typing
|
import typing
|
||||||
import json
|
|
||||||
|
|
||||||
from .base import View, register_route
|
from .base import View, register_route
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ async def handle_frontend_path(request: web.Request, handler: Callable) -> Respo
|
||||||
response = await handler(request)
|
response = await handler(request)
|
||||||
|
|
||||||
if not request['user'] and request['token']:
|
if not request['user'] and request['token']:
|
||||||
print("del token")
|
|
||||||
response.del_cookie('user-token')
|
response.del_cookie('user-token')
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
Loading…
Reference in a new issue