WIP on adding feed items (#4)

This commit is contained in:
2024-04-09 23:14:53 -04:00
parent 5c92c8c7d6
commit 0530ed0dc9
3 changed files with 86 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ Security::verifyUser();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
// TODO: get feed, add if new, reject if existing but not owned by this user, update otherwise
$result = Feed::add($_POST['url']);
echo '<pre>'; var_dump($result); echo '</pre>';
$feed = [ 'id' => $_POST['id'], 'url' => $_POST['url'] ];
$title = 'TODO';
} else {