logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 5c0deb1e6f3a854ddcef99f4bdfa82672524f82c
parent 33c21950648c66ac2d4d46d69349393f38dfb2ea
Author: tusooa <tusooa@kazv.moe>
Date:   Thu,  6 Apr 2023 18:14:49 -0400

Fix bug where announcements cannot be pinned

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