Skip to content
Snippets Groups Projects
Commit 45b9e4cb authored by Sulthan Dzaky Alfaro's avatar Sulthan Dzaky Alfaro
Browse files
parents f4836368 19b0479a
Branches
Tags
No related merge requests found
...@@ -60,7 +60,8 @@ CREATE TABLE "post_resources" ( ...@@ -60,7 +60,8 @@ CREATE TABLE "post_resources" (
CREATE TABLE "likes" ( CREATE TABLE "likes" (
"post_id" integer, "post_id" integer,
"post_owner_id" integer, "post_owner_id" integer,
"user_id" integer "user_id" integer,
"created_at" timestamp DEFAULT current_timestamp
); );
COMMENT ON COLUMN "users"."id" IS 'Starts at 1'; COMMENT ON COLUMN "users"."id" IS 'Starts at 1';
......
...@@ -54,7 +54,7 @@ class PostController extends BaseController ...@@ -54,7 +54,7 @@ class PostController extends BaseController
protected function post($urlParams) protected function post($urlParams)
{ {
$this->compose(); $this->compose();
require PAGE_PATH . "/submission.php"; header("Location: /");
exit(); exit();
} }
} }
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/public/css/post.css">
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet">
<title>Post Review</title>
</head>
<body>
<section id="overlay">
<img src="/public/assets/Logo.png" alt="Github Logo" id="logo">
<hr>
<h1>You have made a new post!</h1>
</section>
</body>
</html>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment