fix: broken recipe pages from bad cross-table SQL in followers-visibility check
visibleToViewer() referenced userFollows as a Drizzle column proxy inside db.query.recipes.findFirst's where — the relational query builder rewrites embedded column refs to the outer query's own table alias regardless of which table they actually belong to, same gotcha already documented and worked around in recipes/page.tsx's search filter. That silently produced SQL referencing a column that doesn't exist on recipes, breaking every recipe page load since 0.41.0. Fixed by using a literal user_follows identifier instead, matching the established workaround. v0.44.1
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
|
||||
All notable changes to Epicure are documented here. This file is mirrored in-app at `/changelog` (and in the admin dashboard) via `apps/web/lib/changelog.ts` — update both together.
|
||||
|
||||
## 0.44.1 — 2026-07-17 17:00
|
||||
|
||||
### Fixed
|
||||
- Every recipe page was broken (server error) since 0.41.0 — the new followers-visibility check referenced the user_follows table incorrectly inside a query the ORM rewrites in a way that silently produces invalid SQL for cross-table references. Fixed by using a literal table reference instead.
|
||||
|
||||
## 0.44.0 — 2026-07-17 16:15
|
||||
|
||||
### Added
|
||||
|
||||
Reference in New Issue
Block a user