-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: failed to search items by rss feed url which has query parameters #4312
Conversation
sywhb
commented
Aug 23, 2024
- encode uri component of the rss feed url
- use descriminated unions to differetiate rss and newsletter subscription
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
if (useFolders) { | ||
const param = `folder_${parameters.length}` | ||
const folderSql = escapeQueryWithParameters( | ||
`library_item.folder = :${param}`, | ||
{ [param]: value } | ||
) | ||
sql = `(${sql} AND ${folderSql})` | ||
return `(library_item.archived_at IS NULL AND ${folderSql})` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you want these changes in this PR too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I will move these backend changes to a separate PR
* encode uri component of the rss feed url * use descriminated unions to differetiate rss and newsletter subscription
This reverts commit b2cf7d2.
bd58161
to
bb9967a
Compare
@@ -266,7 +271,11 @@ export default function Rss(): JSX.Element { | |||
</VStack> | |||
} | |||
onClick={() => { | |||
router.push(`/home?q=in:inbox rss:"${subscription.url}"`) | |||
router.push( | |||
`/home?q=in:inbox rss:"${encodeURIComponent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this should be search?q=
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just one small change as we don't use home for queries anymore. |