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

This commit is contained in:
tateisu 2018-05-19 16:13:28 +09:00
parent 33561361dc
commit 9772d717fb
1 changed files with 11 additions and 0 deletions

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()}")