Reproduction steps
1. Fresh install of 4.5.8 Pro, create two users: alice and bob.
2. alice uploads an image, bob likes it.
3. As a guest (or as alice), open /bob/liked.
4. As any user except admin (bob included), trigger the Liked listing via /json: POST /json action=list&list=images&like_user_id=bob's user id
Unexpected result
Step 3: the page loads but the list is empty.
Step 4: HTTP 500 "Something went wrong".
Admins are not affected and see the liked images.
Error log message
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'album_id' in field list is ambiguous
(Listing.php:1092 <- json.php:643)
1. Fresh install of 4.5.8 Pro, create two users: alice and bob.
2. alice uploads an image, bob likes it.
3. As a guest (or as alice), open /bob/liked.
4. As any user except admin (bob included), trigger the Liked listing via /json: POST /json action=list&list=images&like_user_id=bob's user id
Unexpected result
Step 3: the page loads but the list is empty.
Step 4: HTTP 500 "Something went wrong".
Admins are not affected and see the liked images.
Error log message
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'album_id' in field list is ambiguous
(Listing.php:1092 <- json.php:643)
