(patch) Add "Hide Repost" button in channel page

Fixes the "force repost" behavior in Category Page.

Got the logic wrong when the boolean parameter was inverted from "force" (+ve) to "hideRepostOverride" (-ve) to support the "Hide Repost" button.

hideRepostOverride:
- undefined = follow user setting
- true = always hide
- false = always show << we want this
This commit is contained in:
infinite-persistence 2022-07-12 16:04:59 +08:00
parent 147ac43eac
commit e858cdd88b
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -270,7 +270,7 @@ function DiscoverPage(props: Props) {
}
meta={getMeta()}
hasSource
hideRepostsOverride={dynamicRouteProps ? true : undefined}
hideRepostsOverride={dynamicRouteProps ? false : undefined}
searchLanguages={dynamicRouteProps?.options?.searchLanguages}
/>
</ClaimSearchFilterContext.Provider>