diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-07-30 07:20:27 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-07-30 07:20:27 +0900 |
| commit | 83d9730d93b976c2477808e1a6275937defff300 (patch) | |
| tree | 782e1d5a8d875f469223cc34e55d619347a5afe3 /src/server/api/service | |
| parent | Fix bug (diff) | |
| download | sharkey-83d9730d93b976c2477808e1a6275937defff300.tar.gz sharkey-83d9730d93b976c2477808e1a6275937defff300.tar.bz2 sharkey-83d9730d93b976c2477808e1a6275937defff300.zip | |
#2020
Diffstat (limited to 'src/server/api/service')
| -rw-r--r-- | src/server/api/service/twitter.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/service/twitter.ts b/src/server/api/service/twitter.ts index 080f5879a3..8c668e832a 100644 --- a/src/server/api/service/twitter.ts +++ b/src/server/api/service/twitter.ts @@ -4,7 +4,7 @@ import * as uuid from 'uuid'; import autwh from 'autwh'; import redis from '../../../db/redis'; import User, { pack, ILocalUser } from '../../../models/user'; -import event from '../../../stream'; +import { publishUserStream } from '../../../stream'; import config from '../../../config'; import signin from '../common/signin'; @@ -49,7 +49,7 @@ router.get('/disconnect/twitter', async ctx => { ctx.body = `Twitterの連携を解除しました :v:`; // Publish i updated event - event(user._id, 'meUpdated', await pack(user, user, { + publishUserStream(user._id, 'meUpdated', await pack(user, user, { detail: true, includeSecrets: true })); @@ -174,7 +174,7 @@ if (config.twitter == null) { ctx.body = `Twitter: @${result.screenName} を、Misskey: @${user.username} に接続しました!`; // Publish i updated event - event(user._id, 'meUpdated', await pack(user, user, { + publishUserStream(user._id, 'meUpdated', await pack(user, user, { detail: true, includeSecrets: true })); |