add post editing
This commit is contained in:
@ -8,6 +8,19 @@ Constants.PermissionLevel = {
|
||||
ADMIN = 4,
|
||||
}
|
||||
|
||||
Constants.FULL_POSTS_QUERY = [[
|
||||
SELECT
|
||||
posts.id, posts.created_at, post_history.content, post_history.edited_at, users.username, users.status, avatars.file_path AS avatar_path, posts.thread_id, users.id AS user_id, post_history.original_markup
|
||||
FROM
|
||||
posts
|
||||
JOIN
|
||||
post_history ON posts.current_revision_id = post_history.id
|
||||
JOIN
|
||||
users ON posts.user_id = users.id
|
||||
LEFT JOIN
|
||||
avatars ON users.avatar_id = avatars.id
|
||||
]]
|
||||
|
||||
Constants.PermissionLevelString = {
|
||||
[Constants.PermissionLevel.GUEST] = "Guest",
|
||||
[Constants.PermissionLevel.USER] = "User",
|
||||
|
Reference in New Issue
Block a user