user.url: null対策
This commit is contained in:
parent
283f0b6d62
commit
9a9e77a44b
@ -173,6 +173,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
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') };
|
||||||
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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user