1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-29 18:19:22 +01:00

GET /api/v1/push/subscription が403を返した時の対応を追加

This commit is contained in:
tateisu 2018-05-19 16:13:28 +09:00
parent 33561361dc
commit 9772d717fb

View File

@ -113,6 +113,17 @@ class PushSubscriptionHelper(
subscription404 = true
}
403 -> {
// アクセストークンにpushスコープがない
return if(verbose){
addLog(context.getString(R.string.missing_push_scope))
r
}else{
if( flags!=0 ) addLog(context.getString(R.string.missing_push_scope))
TootApiResult()
}
}
else -> {
addLog("${res.request()}")
addLog("${res.code()} ${res.message()}")