Skip to content

Commit

Permalink
fixed full text search for reviews under real name
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Oct 17, 2023
1 parent 9b6f135 commit 7d7f67f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine/impl/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -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" ],
Expand Down

0 comments on commit 7d7f67f

Please sign in to comment.