diff options
| author | tusooa <tusooa@kazv.moe> | 2024-01-13 22:37:22 +0000 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2024-01-13 22:37:22 +0000 |
| commit | f5b4b5f7770dad5c8a90bce2263d3a97b9ad2d00 (patch) | |
| tree | 32e5961e4e05934af9323ffb78b0d9d908cbf9d9 /src/components/user_profile/user_profile.js | |
| parent | bdf46eca5ae73b0f12b755774cd901854c814522 (diff) | |
| parent | 6f452d672fe740035cf1d29d03bcda0d39438753 (diff) | |
Merge branch 'public-favorites' into 'develop'
Display public favorites on user profiles if enabled
See merge request pleroma/pleroma-fe!1883
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 |
