1
0
Fork 1
mirror of https://example.com synced 2024-11-25 08:46:40 +09:00
This commit is contained in:
syuilo 2018-04-29 09:29:39 +09:00
parent 2f2a945905
commit 72c1352acf

View file

@ -123,7 +123,7 @@ export default async (user: IUser, data: {
if (note.channelId == null) {
if (!silent) {
if (isLocalUser(user)) {
if (note.visibility == 'private') {
if (note.visibility == 'private' || note.visibility == 'followers' || note.visibility == 'specified') {
// Publish event to myself's stream
stream(note.userId, 'note', await pack(note, user, {
detail: true
@ -133,7 +133,9 @@ export default async (user: IUser, data: {
stream(note.userId, 'note', noteObj);
// Publish note to local timeline stream
publishLocalTimelineStream(noteObj);
if (note.visibility != 'home') {
publishLocalTimelineStream(noteObj);
}
}
}