diff options
| author | marcin mikołajczak <git@mkljczk.pl> | 2024-01-19 19:01:38 +0100 |
|---|---|---|
| committer | marcin mikołajczak <git@mkljczk.pl> | 2024-01-19 19:01:38 +0100 |
| commit | d28e48e9dcf163e4493bcfc3c65ec62a0b740c38 (patch) | |
| tree | e3cf789de6e010f653bf821db85465f01e4692eb /src/components/user_profile/user_profile.js | |
| parent | f6d3a66a5b7bcbbecc72a66532866ee096c7752d (diff) | |
| parent | dbe9da0f09d9471e9a87e564bb18412f937b8542 (diff) | |
Merge remote-tracking branch 'mkljczk/quotes-count' into quotes-count
Diffstat (limited to 'src/components/user_profile/user_profile.js')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js index acb612ed..751bfd5a 100644 --- a/src/components/user_profile/user_profile.js +++ b/src/components/user_profile/user_profile.js @@ -80,6 +80,9 @@ const UserProfile = { followersTabVisible () { return this.isUs || !this.user.hide_followers }, + favoritesTabVisible () { + return this.isUs || !this.user.hide_favorites + }, formattedBirthday () { const browserLocale = localeService.internalToBrowserLocale(this.$i18n.locale) return this.user.birthday && new Date(Date.parse(this.user.birthday)).toLocaleDateString(browserLocale, { timeZone: 'UTC', day: 'numeric', month: 'long', year: 'numeric' }) @@ -103,6 +106,8 @@ const UserProfile = { startFetchingTimeline('user', userId) startFetchingTimeline('media', userId) if (this.isUs) { + startFetchingTimeline('favorites') + } else if (!this.user.hide_favorites) { startFetchingTimeline('favorites', userId) } // Fetch all pinned statuses immediately |
