This commit is contained in:
NoriDev 2024-02-02 16:38:12 +09:00
parent a78c37aa69
commit c833101015
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ const announcements = {
limit: 10, limit: 10,
}; };
const isTimelineAvailable = ref(instance.policies?.ltlAvailable || instance.policies?.gtlAvailable); const isTimelineAvailable = ref(instance.policies.ltlAvailable || instance.policies.gtlAvailable);
const showMenu = ref(false); const showMenu = ref(false);
const isDesktop = ref(window.innerWidth >= DESKTOP_THRESHOLD); const isDesktop = ref(window.innerWidth >= DESKTOP_THRESHOLD);

View file

@ -59,7 +59,7 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif
if (!account) return null; if (!account) return null;
const userDetail = await cli.request('users/show', { userId: data.body.userId }, account.token); const userDetail = await cli.request('users/show', { userId: data.body.userId }, account.token);
return [t('_notification.youWereFollowed'), { return [t('_notification.youWereFollowed'), {
body: `${getUserName(data.body.user)} (@${data.body.user?.username}${data.body.user?.host != null ? '@' + data.body.user.host : ''})`, body: `${getUserName(data.body.user)} (@${data.body.user.username}${data.body.user.host != null ? '@' + data.body.user.host : ''})`,
icon: data.body.user.avatarUrl, icon: data.body.user.avatarUrl,
badge: iconUrl('user-plus'), badge: iconUrl('user-plus'),
data, data,