Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

try to fix #118 #122

Merged
merged 2 commits into from
Oct 31, 2023
Merged

Conversation

dakkar
Copy link
Contributor

@dakkar dakkar commented Oct 31, 2023

when fetching notes from Redis, we need to re-check the criteria from the API request, because userTimelineWithFiles,
userTimelineWithReplies, userTimelineWithChannel all get merged together, so noteIds may well contain notes without attachments…

thanks to @codingneko for reporting the bug

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

when fetching notes from Redis, we need to re-check the criteria from
the API request, because `userTimelineWithFiles`,
`userTimelineWithReplies`, `userTimelineWithChannel` all get merged
together, so `noteIds` may well contain notes without attachments…
`note.fileIds` is an array, it's always going to be truthy; we need to
check the length, like a similar `if` does just a few lines above
@Mar0xy Mar0xy merged commit c491385 into transfem-org:develop Oct 31, 2023
8 checks passed
@dakkar dakkar deleted the fix-118-search-with-files branch November 1, 2023 18:44
@Mar0xy Mar0xy mentioned this pull request Nov 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants