This commit is contained in:
doesnm 2024-11-22 12:56:48 +03:00
parent b0461ea329
commit 11a8f0db3a
Signed by: doesnm
SSH key fingerprint: SHA256:fSXBOeK0SXxGqmbQ2pKhSvH3TF0kCijXZfzh3gHfQYM

View file

@ -60,7 +60,7 @@ async function login (peertubeHelpers, settingsManager, options) {
initial_display_name: "PeerTube" initial_display_name: "PeerTube"
})}).then(f => f.json()) })}).then(f => f.json())
if(r.access_token){ if(r.access_token){
const r2 = fetch(`https://${settings.url}/_matrix/client/logout`, { const r2 = fetch(`https://${settings.url}/_matrix/client/v3/logout`, {
method: "POST", method: "POST",
headers: { headers: {
Authorization: r.access_token Authorization: r.access_token