Feed feedback and fixes #231
@ -58,14 +58,18 @@ export const FeedTabPosts = () => {
|
|||||||
const filteredNotes = useMemo(() => {
|
const filteredNotes = useMemo(() => {
|
||||||
let _notes = notes || []
|
let _notes = notes || []
|
||||||
|
|
||||||
// Filter nsfw (Hide_NSFW option)
|
// NSFW Filter
|
||||||
_notes = _notes.filter(
|
_notes = _notes.filter((n) => {
|
||||||
(n) =>
|
if (filterOptions.nsfw === NSFWFilter.Only_NSFW) {
|
||||||
!(
|
return n.getMatchingTags('L').some((l) => l[1] === 'content-warning')
|
||||||
filterOptions.nsfw === NSFWFilter.Hide_NSFW &&
|
}
|
||||||
n.tagValue('L') === 'content-warning'
|
|
||||||
)
|
if (filterOptions.nsfw === NSFWFilter.Hide_NSFW) {
|
||||||
)
|
return !n.getMatchingTags('L').some((l) => l[1] === 'content-warning')
|
||||||
|
}
|
||||||
|
|
||||||
|
return n
|
||||||
|
})
|
||||||
|
|
||||||
// Filter source
|
// Filter source
|
||||||
// TODO: Enable source/client filter
|
// TODO: Enable source/client filter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user