sync NoteCreateService.create with .import

again, git merged on the wrong function
This commit is contained in:
dakkar 2024-04-25 11:37:04 +01:00
parent 76a4ebae8a
commit 183cf962a0
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ export class NoteCreateService implements OnApplicationShutdown {
data.visibility = 'home';
}
if (data.renote) {
if (this.isRenote(data)) {
switch (data.renote.visibility) {
case 'public':
// public noteは無条件にrenote可能
@ -309,7 +309,7 @@ export class NoteCreateService implements OnApplicationShutdown {
}
// Check blocking
if (data.renote && !this.isQuote(data)) {
if (this.isRenote(data) && !this.isQuote(data)) {
if (data.renote.userHost === null) {
if (data.renote.userId !== user.id) {
const blocked = await this.userBlockingService.checkBlocked(data.renote.userId, user.id);