fix: portfolio is not being displayed in latest feed
This commit is contained in:
@@ -10,7 +10,16 @@ const lock = new AsyncLock()
|
||||
|
||||
const getOriginalScore = async (cid: string) => {
|
||||
try {
|
||||
let { content } = await (await fetch(toGateway(`ipfs://${cid}`))).json()
|
||||
let { content, tags } = await (
|
||||
await fetch(toGateway(`ipfs://${cid}`))
|
||||
).json()
|
||||
|
||||
if (tags?.[0] === "portfolio") {
|
||||
return {
|
||||
number: 100,
|
||||
reason: "Portfolio",
|
||||
}
|
||||
}
|
||||
|
||||
if (content?.length > 5000) {
|
||||
content = content.slice(0, 5000)
|
||||
|
||||
Reference in New Issue
Block a user