1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-02-09 16:48:47 +01:00

(Misskey v11)アプリの権限リストをv11以降とそれ未満で切り替える

This commit is contained in:
tateisu 2019-04-16 02:57:59 +09:00
parent d7d04fc6db
commit 5c61ac8862

View File

@ -192,6 +192,7 @@ class TootApiClient(
fun getScopeArrayMisskey(@Suppress("UNUSED_PARAMETER") ti : TootInstance) =
JSONArray().apply {
if(ti.versionGE(TootInstance.MISSKEY_VERSION_11)) {
// https://github.com/syuilo/misskey/blob/master/src/server/api/kinds.ts
arrayOf(
"read:account",
"write:account",