diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-04-22 06:22:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-22 06:22:42 +0900 |
| commit | 1aeeb1f07300e6ab37c2441b8bb9f46917bf8cc5 (patch) | |
| tree | 439e7c962ebca3ad9fe071f1be565f07a30a34d8 /src/queue | |
| parent | v5074 (diff) | |
| parent | Fix Misskey同士でフォローできない (diff) | |
| download | sharkey-1aeeb1f07300e6ab37c2441b8bb9f46917bf8cc5.tar.gz sharkey-1aeeb1f07300e6ab37c2441b8bb9f46917bf8cc5.tar.bz2 sharkey-1aeeb1f07300e6ab37c2441b8bb9f46917bf8cc5.zip | |
Merge pull request #1530 from mei23/mei-ap3
Fix can't communicate with other Misskey
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/http/process-inbox.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/queue/processors/http/process-inbox.ts b/src/queue/processors/http/process-inbox.ts index 75ff5918f6..dfafe64a78 100644 --- a/src/queue/processors/http/process-inbox.ts +++ b/src/queue/processors/http/process-inbox.ts @@ -33,6 +33,11 @@ export default async (job: kue.Job, done): Promise<void> => { } user = await User.findOne({ usernameLower: username, host: host.toLowerCase() }) as IRemoteUser; + + // アクティビティを送信してきたユーザーがまだMisskeyサーバーに登録されていなかったら登録する + if (user === null) { + user = await resolvePerson(activity.actor); + } } else { user = await User.findOne({ host: { $ne: null }, |