evazion
174c8e0067
Fix #5335 : Queries with "ordfav:<username>" and geometry attributes (e.g. "ratio:", "height:") crashes the api/site.
...
Fix `Relation passed to #and must be structurally compatible. Incompatible values: [:joins] (ArgumentError)`
exception in `ordfav:evazion ratio:4:3` search. Broken by e849d8f1c .
We were effectively doing this:
q1 = Post.joins(:favorites, :media_asset).where("favorites.user_id = ?", 52664).order("favorites.id DESC")
q2 = Post.joins(:media_asset, :favorites).where("ROUND(media_assets.image_width::numeric / media_assets.image_height::numeric, 2) = 1.33")
q3 = q1.and(q2)
This failed because Rails didn't like the fact that the joins were in a different order when the
queries were `and`-ed together.
2022-11-06 21:13:48 -06:00
..
2022-10-25 16:48:16 -05:00
2022-10-10 18:21:30 -05:00
2022-09-18 05:02:10 -05:00
2022-11-06 15:04:05 +01:00
2021-03-05 16:02:57 -06:00
2022-09-22 04:31:21 -05:00
2022-10-21 20:52:31 +02:00
2022-09-22 04:31:21 -05:00
2022-09-22 04:31:21 -05:00
2022-09-22 04:31:21 -05:00
2022-10-25 22:41:36 -05:00
2022-09-22 04:31:21 -05:00
2021-03-10 02:52:16 -06:00
2021-08-15 04:51:48 -05:00
2022-10-19 18:36:06 +02:00
2020-06-20 00:20:39 -05:00
2022-09-25 04:04:28 -05:00
2021-03-30 00:10:22 -05:00
2022-09-18 05:02:10 -05:00
2022-09-18 05:02:10 -05:00
2022-10-17 22:13:19 -05:00
2022-03-18 17:26:40 -05:00
2021-09-29 06:04:28 -05:00
2022-09-22 04:31:21 -05:00
2022-10-17 22:13:19 -05:00
2022-09-25 04:04:28 -05:00
2021-11-23 23:18:54 -06:00
2022-09-22 04:31:21 -05:00
2022-09-22 04:31:21 -05:00
2022-09-24 03:48:45 -05:00
2022-09-24 03:49:10 -05:00
2022-11-05 00:29:44 -05:00
2020-02-23 17:26:08 -06:00
2020-01-11 00:59:25 -06:00
2022-09-22 04:31:21 -05:00
2021-01-11 21:09:06 -06:00
2022-09-22 04:31:21 -05:00
2022-10-21 20:52:31 +02:00
2022-10-21 20:52:31 +02:00
2022-09-28 00:29:50 -05:00
2022-10-21 20:52:31 +02:00
2022-09-24 23:41:14 -05:00
2022-11-06 21:13:48 -06:00
2022-04-29 22:22:11 -05:00
2022-11-05 02:26:11 -05:00
2022-09-18 05:02:10 -05:00
2022-11-06 16:00:07 -06:00
2021-03-05 16:04:48 -06:00
2022-04-29 17:13:33 -05:00
2022-09-18 05:02:10 -05:00
2022-02-22 00:17:05 -06:00
2022-09-18 05:02:10 -05:00
2022-10-14 21:27:53 -05:00
2020-03-12 21:18:53 -05:00
2022-02-05 23:14:14 -06:00
2021-01-11 05:12:09 -06:00
2022-09-18 05:02:10 -05:00
2022-09-18 05:02:10 -05:00
2022-09-18 05:02:10 -05:00
2021-10-11 20:05:09 -05:00
2021-06-28 05:09:34 -05:00
2022-11-06 13:18:49 -06:00
2020-12-24 00:17:19 -06:00
2022-10-11 15:45:47 -05:00
2022-03-09 01:14:09 -06:00
2022-11-06 16:00:07 -06:00
2022-05-20 22:51:02 -05:00
2022-09-22 04:31:21 -05:00