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:
parent
33561361dc
commit
9772d717fb
@ -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()}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user