Changed select posts query.
This commit is contained in:
@@ -71,7 +71,13 @@ function selectAllUserPosts($userID) {
|
||||
`postID`,
|
||||
`author`,
|
||||
`title`,
|
||||
`content`,
|
||||
CASE LENGTH(`content`) >= 150
|
||||
WHEN TRUE THEN
|
||||
CONCAT(LEFT(`content`, 150), '...')
|
||||
WHEN FALSE THEN
|
||||
`content`
|
||||
END
|
||||
AS `content`,
|
||||
`creationdate`
|
||||
FROM
|
||||
`post`
|
||||
|
||||
Reference in New Issue
Block a user