mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 17:03:09 +02:00
wip
This commit is contained in:
parent
2f2a945905
commit
72c1352acf
1 changed files with 4 additions and 2 deletions
|
@ -123,7 +123,7 @@ export default async (user: IUser, data: {
|
||||||
if (note.channelId == null) {
|
if (note.channelId == null) {
|
||||||
if (!silent) {
|
if (!silent) {
|
||||||
if (isLocalUser(user)) {
|
if (isLocalUser(user)) {
|
||||||
if (note.visibility == 'private') {
|
if (note.visibility == 'private' || note.visibility == 'followers' || note.visibility == 'specified') {
|
||||||
// Publish event to myself's stream
|
// Publish event to myself's stream
|
||||||
stream(note.userId, 'note', await pack(note, user, {
|
stream(note.userId, 'note', await pack(note, user, {
|
||||||
detail: true
|
detail: true
|
||||||
|
@ -133,9 +133,11 @@ export default async (user: IUser, data: {
|
||||||
stream(note.userId, 'note', noteObj);
|
stream(note.userId, 'note', noteObj);
|
||||||
|
|
||||||
// Publish note to local timeline stream
|
// Publish note to local timeline stream
|
||||||
|
if (note.visibility != 'home') {
|
||||||
publishLocalTimelineStream(noteObj);
|
publishLocalTimelineStream(noteObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Publish note to global timeline stream
|
// Publish note to global timeline stream
|
||||||
publishGlobalTimelineStream(noteObj);
|
publishGlobalTimelineStream(noteObj);
|
||||||
|
|
Loading…
Reference in a new issue