diff --git a/website/public/API/edit_friendship.php b/website/public/API/edit_friendship.php deleted file mode 100644 index 52aacf5..0000000 --- a/website/public/API/edit_friendship.php +++ /dev/null @@ -1,31 +0,0 @@ -fetchAll(PDO::FETCH_ASSOC); + +for($i = 0; $i < sizeof($results); $i++) { + $results[$i]["nicetime"] = nicetime($results[$i]["creationdate"]); +} + +//$results[0]["niceTime"] = nicetime($results[0]["creationdate"]); + +echo json_encode($results); \ No newline at end of file diff --git a/website/public/API/postComment.php b/website/public/API/postComment.php new file mode 100644 index 0000000..b840e0b --- /dev/null +++ b/website/public/API/postComment.php @@ -0,0 +1,18 @@ + $friend) { $friendshipStatus = getFriendshipStatus($friend->userID); - - if ($limit != 0 && $i >= $limit) - $extra = "extra-friend-item"; - else - $extra = ""; ?>
${post["content"]}
-${nicetime} geplaatst.
-
+
= $user["fname"]?> =$user["lname"]?>
=$user["username"]?>
=$user["bio"]?>
@@ -43,37 +43,7 @@