1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Merge branch 'main' into candidate

This commit is contained in:
xmflsct
2023-01-11 23:34:09 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@
"content": { "content": {
"root": { "root": {
"header": { "header": {
"postingAs": "Publicant la publicació com a @{{acct}}@{{domain}}", "postingAs": "Publicant com a @{{acct}}@{{domain}}",
"spoilerInput": { "spoilerInput": {
"placeholder": "Missatge d'alerta d'espòiler" "placeholder": "Missatge d'alerta d'espòiler"
}, },

View File

@ -182,7 +182,7 @@ const TabMePush: React.FC = () => {
} else { } else {
// Fix a bug for some users of v4.8.0 // Fix a bug for some users of v4.8.0
let authKey = push.key let authKey = push.key
if (push.key.length <= 10) { if (push.key?.length <= 10) {
authKey = fromByteArray(Random.getRandomBytes(16)) authKey = fromByteArray(Random.getRandomBytes(16))
} }
// Turning on // Turning on
@ -228,7 +228,7 @@ const TabMePush: React.FC = () => {
body: { body: {
accountFull, accountFull,
serverKey: res.body.server_key, serverKey: res.body.server_key,
auth: push.decode === false ? null : push.key auth: push.decode === false ? null : authKey
} }
}) })