Feat: Implemented WOT #121
@ -130,9 +130,9 @@ export const ModFilter = React.memo(
|
|||||||
import.meta.env.VITE_REPORTING_NPUB
|
import.meta.env.VITE_REPORTING_NPUB
|
||||||
|
|
||||||
const isOwnProfile =
|
const isOwnProfile =
|
||||||
filterOptions.author &&
|
author &&
|
||||||
userState.auth &&
|
userState.auth &&
|
||||||
userState.user?.pubkey === filterOptions.author
|
userState.user?.pubkey === author
|
||||||
|
|
||||||
if (!(isAdmin || isOwnProfile)) return null
|
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 = {
|
export const DEFAULT_FILTER_OPTIONS: FilterOptions = {
|
||||||
sort: SortBy.Latest,
|
sort: SortBy.Latest,
|
||||||
nsfw: NSFWFilter.Hide_NSFW,
|
nsfw: NSFWFilter.Hide_NSFW,
|
||||||
source: window.location.host,
|
source: window.location.host,
|
||||||
moderated: ModeratedFilter.Moderated
|
moderated: ModeratedFilter.Moderated,
|
||||||
|
wot: WOTFilterOptions.Site_Only
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user