Fixed query for image tags

This commit is contained in:
K. Nobel
2017-01-25 11:19:24 +01:00
parent 7144d700e4
commit 1402a3ea07

View File

@@ -108,7 +108,7 @@ function selectAllUserPosts($userID) {
`postID`,
`author`,
`title`,
CASE LENGTH(`content`) >= 150
CASE LENGTH(`content`) >= 150 AND `content` NOT LIKE '<img%'
WHEN TRUE THEN
CONCAT(LEFT(`content`, 150), '...')
WHEN FALSE THEN