logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: a81452070972d5bf4c10a75d15b36fa1b7f19bcd
parent 9a8f52a38db26ec4fe57afbd5aca6a1cf15eb91c
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Tue, 11 Apr 2023 21:28:02 +0000

Merge branch 'tusooa/pin-announcement' into 'develop'

Fix bug where announcements cannot be pinned

See merge request pleroma/pleroma-fe!1809

Diffstat:

Msrc/components/navigation/navigation_pins.js3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/components/navigation/navigation_pins.js b/src/components/navigation/navigation_pins.js @@ -45,6 +45,7 @@ const NavPanel = { privateMode: state => state.instance.private, federating: state => state.instance.federating, pleromaChatMessagesAvailable: state => state.instance.pleromaChatMessagesAvailable, + supportsAnnouncements: state => state.announcements.supportsAnnouncements, pinnedItems: state => new Set(state.serverSideStorage.prefsStorage.collections.pinnedNavItems) }), pinnedList () { @@ -56,6 +57,7 @@ const NavPanel = { ], { hasChats: this.pleromaChatMessagesAvailable, + hasAnnouncements: this.supportsAnnouncements, isFederating: this.federating, isPrivate: this.privateMode, currentUser: this.currentUser @@ -75,6 +77,7 @@ const NavPanel = { ], { hasChats: this.pleromaChatMessagesAvailable, + hasAnnouncements: this.supportsAnnouncements, isFederating: this.federating, isPrivate: this.privateMode, currentUser: this.currentUser