user.url: null対策

This commit is contained in:
ThinaticSystem 2022-05-21 06:46:25 +09:00
parent 283f0b6d62
commit 9a9e77a44b

View File

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