WoT implemented, plus other fixes #160
@ -130,9 +130,9 @@ export const ModFilter = React.memo(
|
||||
import.meta.env.VITE_REPORTING_NPUB
|
||||
|
||||
const isOwnProfile =
|
||||
filterOptions.author &&
|
||||
author &&
|
||||
userState.auth &&
|
||||
userState.user?.pubkey === filterOptions.author
|
||||
userState.user?.pubkey === author
|
||||
|
||||
if (!(isAdmin || isOwnProfile)) return null
|
||||
}
|
||||
|
@ -1,8 +1,15 @@
|
||||
import { FilterOptions, SortBy, NSFWFilter, ModeratedFilter } from 'types'
|
||||
import {
|
||||
FilterOptions,
|
||||
SortBy,
|
||||
NSFWFilter,
|
||||
ModeratedFilter,
|
||||
WOTFilterOptions
|
||||
} from 'types'
|
||||
|
||||
export const DEFAULT_FILTER_OPTIONS: FilterOptions = {
|
||||
sort: SortBy.Latest,
|
||||
nsfw: NSFWFilter.Hide_NSFW,
|
||||
source: window.location.host,
|
||||
moderated: ModeratedFilter.Moderated
|
||||
moderated: ModeratedFilter.Moderated,
|
||||
wot: WOTFilterOptions.Site_Only
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user