This commit is contained in:
ThinaticSystem 2022-07-16 18:22:42 +09:00
parent 2484fbc9ed
commit a0ccda2c61

View File

@ -167,7 +167,7 @@ function openRenoteDestination(renoteNotification: misskey.entities.Notification
os.api('users/show', {userId: renoteNotification.user.id}).then((user: misskey.entities.UserDetailed) => { os.api('users/show', {userId: renoteNotification.user.id}).then((user: misskey.entities.UserDetailed) => {
if (user.host != null && user.followersCount === 0) { // 稿 if (user.host != null && user.followersCount === 0) { // 稿
if (user.url === null) { throw new Error('User page URL is Null') }; if (user.url === null) { throw new Error('User page URL is Null'); };
window.open(user.url, '_blank', 'rel="nofollow noopener"'); window.open(user.url, '_blank', 'rel="nofollow noopener"');
} else { } else {
os.pageWindow(notePage(renoteNotification.note)); os.pageWindow(notePage(renoteNotification.note));