Update create.ts

This commit is contained in:
syuilo 2018-07-14 13:47:36 +09:00 committed by GitHub
parent d8eb518ec4
commit e1b7522650

View File

@ -308,7 +308,10 @@ export default async (user: IUser, data: {
// Publish event to followers stream
stream(following.followerId, 'note', noteObj);
publishHybridTimelineStream(following.followerId, noteObj);
if (note.visibility != 'public') {
publishHybridTimelineStream(following.followerId, noteObj);
}
} else {
//#region AP配送
// フォロワーがリモートユーザーかつ投稿者がローカルユーザーなら投稿を配信