fix: disable ai filter for non latest feed
This commit is contained in:
parent
1e08ca5c04
commit
b5416560d6
|
|
@ -14,10 +14,10 @@ const getOriginalScore = async (cid: string) => {
|
|||
await fetch(toGateway(`ipfs://${cid}`))
|
||||
).json()
|
||||
|
||||
if (tags?.[0] === "portfolio") {
|
||||
if (tags?.[0] === "portfolio" || tags?.[0] === "short") {
|
||||
return {
|
||||
number: 100,
|
||||
reason: "Portfolio",
|
||||
reason: "Whitelist content",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -136,6 +136,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
|||
.filter((post) => {
|
||||
if (
|
||||
aiFiltering &&
|
||||
hasFiltering &&
|
||||
post.metadata?.content?.score?.number !== undefined &&
|
||||
post.metadata.content.score.number <= 60
|
||||
) {
|
||||
|
|
@ -146,7 +147,7 @@ export const HomeFeed = ({ type }: { type?: FeedType }) => {
|
|||
}),
|
||||
)
|
||||
}
|
||||
}, [feed.data?.pages, aiFiltering])
|
||||
}, [feed.data?.pages, aiFiltering, hasFiltering])
|
||||
|
||||
const [isMounted, setIsMounted] = useState(false)
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue