summaryrefslogtreecommitdiff
path: root/src/queue/processors
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-04-22 06:22:42 +0900
committerGitHub <noreply@github.com>2018-04-22 06:22:42 +0900
commit1aeeb1f07300e6ab37c2441b8bb9f46917bf8cc5 (patch)
tree439e7c962ebca3ad9fe071f1be565f07a30a34d8 /src/queue/processors
parentv5074 (diff)
parentFix Misskey同士でフォローできない (diff)
downloadsharkey-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/processors')
-rw-r--r--src/queue/processors/http/process-inbox.ts5
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 },