From 7d7f67f4b32ad8a724cf8f92a9ab2282ae2d026d Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Tue, 17 Oct 2023 17:14:35 +0100 Subject: [PATCH] fixed full text search for reviews under real name --- engine/impl/Library.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/impl/Library.php b/engine/impl/Library.php index a00ae0f3..5d67c6c4 100644 --- a/engine/impl/Library.php +++ b/engine/impl/Library.php @@ -87,10 +87,11 @@ class LibraryImpl extends DBO implements ILibrary { "ORDER BY showdate DESC, list DESC, t.id" ], [ "reviews", "reviewrec", "reviews", "review", "SELECT r.tag, av.artist, av.album, an.airname, " . - "DATE_FORMAT(r.created, GET_FORMAT(DATE, 'ISO')) reviewed, r.id " . + "DATE_FORMAT(r.created, GET_FORMAT(DATE, 'ISO')) reviewed, r.id, u.realname " . "FROM reviews r " . "LEFT JOIN albumvol av ON r.tag = av.tag " . "LEFT JOIN airnames an ON r.airname = an.id " . + "LEFT JOIN users u ON r.user = u.name " . "WHERE private = 0 AND " . "MATCH (review) AGAINST(? IN BOOLEAN MODE) " . "ORDER BY r.created DESC" ],