プロキシアカウントをユーザー名ではなくIDで保存するように

This commit is contained in:
syuilo 2020-02-05 10:15:09 +09:00
parent ce589fee8c
commit 8818648740
8 changed files with 67 additions and 22 deletions

View file

@ -22,7 +22,9 @@ export async function pushUserToUserList(target: User, list: UserList) {
// このインスタンス内にこのリモートユーザーをフォローしているユーザーがいなくても投稿を受け取るためにダミーのユーザーがフォローしたということにする
if (Users.isRemoteUser(target)) {
const proxy = await fetchProxyAccount();
const content = renderActivity(renderFollow(proxy, target));
deliver(proxy, content, target.inbox);
if (proxy) {
const content = renderActivity(renderFollow(proxy, target));
deliver(proxy, content, target.inbox);
}
}
}