client: include renote in visibility computation
Changelog: Changed
This commit is contained in:
parent
17fa488eb9
commit
106e14700f
1 changed files with 18 additions and 1 deletions
|
@ -257,7 +257,7 @@ if (props.channel) {
|
||||||
|
|
||||||
if (props.reply) {
|
if (props.reply) {
|
||||||
visibility = foundkey.minVisibility(props.reply.visibility, visibility);
|
visibility = foundkey.minVisibility(props.reply.visibility, visibility);
|
||||||
if (visibility === 'specified') {
|
if (props.reply.visibility === 'specified') {
|
||||||
os.api('users/show', {
|
os.api('users/show', {
|
||||||
userIds: props.reply.visibleUserIds.filter(uid => uid !== $i.id && uid !== props.reply.userId),
|
userIds: props.reply.visibleUserIds.filter(uid => uid !== $i.id && uid !== props.reply.userId),
|
||||||
}).then(users => {
|
}).then(users => {
|
||||||
|
@ -272,6 +272,23 @@ if (props.reply) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (props.renote) {
|
||||||
|
visibility = foundkey.minVisibility(props.renote.visibility, visibility);
|
||||||
|
if (props.renote.visibility === 'specified') {
|
||||||
|
os.api('users/show', {
|
||||||
|
userIds: props.renote.visibleUserIds.filter(uid => uid !== $i.id && uid !== props.renote.userId),
|
||||||
|
}).then(users => {
|
||||||
|
users.forEach(pushVisibleUser);
|
||||||
|
});
|
||||||
|
|
||||||
|
if (props.renote.userId !== $i.id) {
|
||||||
|
os.api('users/show', { userId: props.renote.userId }).then(user => {
|
||||||
|
pushVisibleUser(user);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (props.specified) {
|
if (props.specified) {
|
||||||
visibility = 'specified';
|
visibility = 'specified';
|
||||||
pushVisibleUser(props.specified);
|
pushVisibleUser(props.specified);
|
||||||
|
|
Loading…
Reference in a new issue