feat: add upvoted and downvoted listings

This commit is contained in:
Xylight committed 2024-07-20 11:49:05 -07:00
1 parent 29bfa9104a
commit 7d2089be0e
4 files changed
+90 -36

No files matched your search

+4 -3
View File
@@ -288,9 +288,10 @@ async function userFromJwt(
if (!site) return
if (!versionIsSupported(site.version, MINIMUM_VERSION)) {
throw new Error(
`This version of Photon only supports Lemmy instances with version ${MINIMUM_VERSION} or higher. This Lemmy instance is running: ${site.version}`
)
toast({
content: `This version of Photon only supports Lemmy instances with version ${MINIMUM_VERSION} or higher. This Lemmy instance is running: ${site.version}`,
type: 'error',
})
}
const myUser = site.my_user