Skip to content

Commit

Permalink
Fix+Chore: Remove crop directives from community post's images (#3734)
Browse files Browse the repository at this point in the history
  • Loading branch information
Svallinn authored Jul 9, 2023
1 parent fa821dd commit f7b7fe5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export default defineComponent({
return Number.parseInt(b.width) - Number.parseInt(a.width)
})

return imageArrayCopy.at(0)?.url ?? ''
// Remove cropping directives when applicable
return imageArrayCopy.at(0)?.url?.replace(/-c-fcrop64=.*/i, '') ?? ''
}
}
})

0 comments on commit f7b7fe5

Please sign in to comment.