From 3480820a0a321de8cf1161cf46f0430687522611 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sun, 19 Oct 2025 12:07:53 +1100 Subject: [PATCH] Bug fixes --- .github/workflows/github_actions.yml | 2 ++ src/shared/constants/feedFilters.js | 9 +++++++-- src/shared/utils/common.js | 2 +- src/stores/settings/notifications.js | 18 +++++++++++++----- src/vr/Vr.vue | 24 ++++++++++++------------ 5 files changed, 35 insertions(+), 20 deletions(-) diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index 4bc95fbf..f1d5c84a 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -242,6 +242,8 @@ jobs: path: build/html - name: Build Electron-html + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SentryAuthToken }} run: npm run prod-linux - name: Download Electron x64 dotnet artifacts uses: actions/download-artifact@v5 diff --git a/src/shared/constants/feedFilters.js b/src/shared/constants/feedFilters.js index 5e809302..467351e2 100644 --- a/src/shared/constants/feedFilters.js +++ b/src/shared/constants/feedFilters.js @@ -75,6 +75,11 @@ function feedFiltersOptions() { name: 'Request Invite Response', options: getOptions(['Off', 'VIP', 'Friends']) }, + { + key: 'boop', + name: 'Boop', + options: getOptions(['Off', 'VIP', 'Friends']) + }, { key: 'friendRequest', name: 'Friend Request', @@ -247,12 +252,12 @@ const sharedFeedFiltersDefaults = { requestInvite: 'Friends', inviteResponse: 'Friends', requestInviteResponse: 'Friends', + boop: 'Friends', friendRequest: 'On', Friend: 'On', Unfriend: 'On', DisplayName: 'VIP', TrustLevel: 'VIP', - boop: 'Off', groupChange: 'On', 'group.announcement': 'On', 'group.informative': 'On', @@ -289,12 +294,12 @@ const sharedFeedFiltersDefaults = { requestInvite: 'Friends', inviteResponse: 'Friends', requestInviteResponse: 'Friends', + boop: 'Friends', friendRequest: 'On', Friend: 'On', Unfriend: 'On', DisplayName: 'Friends', TrustLevel: 'Friends', - boop: 'On', groupChange: 'On', 'group.announcement': 'On', 'group.informative': 'On', diff --git a/src/shared/utils/common.js b/src/shared/utils/common.js index a225ffc2..9cb1698d 100644 --- a/src/shared/utils/common.js +++ b/src/shared/utils/common.js @@ -343,7 +343,7 @@ function buildTreeData(json) { * @returns {string} */ function replaceBioSymbols(text) { - if (!text) { + if (typeof text !== 'string') { return ''; } const symbolList = { diff --git a/src/stores/settings/notifications.js b/src/stores/settings/notifications.js index d54d5376..0e3ba05b 100644 --- a/src/stores/settings/notifications.js +++ b/src/stores/settings/notifications.js @@ -40,12 +40,12 @@ export const useNotificationsSettingsStore = defineStore( requestInvite: 'Friends', inviteResponse: 'Friends', requestInviteResponse: 'Friends', + boop: 'Friends', friendRequest: 'On', Friend: 'On', Unfriend: 'On', DisplayName: 'VIP', TrustLevel: 'VIP', - boop: 'Off', groupChange: 'On', 'group.announcement': 'On', 'group.informative': 'On', @@ -82,12 +82,12 @@ export const useNotificationsSettingsStore = defineStore( requestInvite: 'Friends', inviteResponse: 'Friends', requestInviteResponse: 'Friends', + boop: 'Friends', friendRequest: 'On', Friend: 'On', Unfriend: 'On', DisplayName: 'Friends', TrustLevel: 'Friends', - boop: 'On', groupChange: 'On', 'group.announcement': 'On', 'group.informative': 'On', @@ -308,9 +308,17 @@ export const useNotificationsSettingsStore = defineStore( sharedFeedFilters.value.noty['group.transfer'] = 'On'; sharedFeedFilters.value.wrist['group.transfer'] = 'On'; } - if (!sharedFeedFilters.value.noty.boop) { - sharedFeedFilters.value.noty.boop = 'Off'; - sharedFeedFilters.value.wrist.boop = 'On'; + if ( + !sharedFeedFilters.value.noty.boop || + sharedFeedFilters.value.noty.boop === 'On' + ) { + sharedFeedFilters.value.noty.boop = 'Friends'; + } + if ( + !sharedFeedFilters.value.wrist.boop || + sharedFeedFilters.value.wrist.boop === 'On' + ) { + sharedFeedFilters.value.wrist.boop = 'Friends'; } } function setNotificationTTSVoice(index) { diff --git a/src/vr/Vr.vue b/src/vr/Vr.vue index 48633529..cec76f00 100644 --- a/src/vr/Vr.vue +++ b/src/vr/Vr.vue @@ -88,7 +88,7 @@
{{ formatDate(feed.created_at) }} - + {{ formatDate(feed.created_at) }} - + {{ formatDate(feed.created_at) }} - +
@@ -200,7 +200,7 @@ {{ formatDate(feed.created_at) }} - + @@ -213,7 +213,7 @@ {{ formatDate(feed.created_at) }} - + @@ -282,18 +282,19 @@ - +
{{ formatDate(feed.created_at) }} - +
@@ -424,9 +425,8 @@ {{ formatDate(feed.created_at) }}