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