summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-15 17:39:12 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-15 17:39:12 +0900
commit0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b (patch)
treef1c9bfb9567f64af6b8bcebd0e6e2a1d311fab8a /src
parentMerge branch 'master' of https://github.com/syuilo/misskey (diff)
downloadsharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.tar.gz
sharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.tar.bz2
sharkey-0bbe8267b8a0de8b6d4bfe5c68a9e0fe7453267b.zip
ストリームを経由してのリクエストではトークンの添付は無駄だった
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/mios.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts
index 41825c3b74..96a04bad3c 100644
--- a/src/client/app/common/mios.ts
+++ b/src/client/app/common/mios.ts
@@ -445,9 +445,6 @@ export default class MiOS extends EventEmitter {
if (--pending === 0) spinner.parentNode.removeChild(spinner);
};
- // Append a credential
- if (this.isSignedIn) (data as any).i = this.i.token;
-
const promise = new Promise((resolve, reject) => {
const viaStream = this.stream.hasConnection &&
(localStorage.getItem('apiViaStream') ? localStorage.getItem('apiViaStream') == 'true' : true);
@@ -473,6 +470,9 @@ export default class MiOS extends EventEmitter {
data
});
} else {
+ // Append a credential
+ if (this.isSignedIn) (data as any).i = this.i.token;
+
const req = {
id: uuid(),
date: new Date(),