From ef16890f38bd4256da1b873a89dfadc5067d63a9 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 24 Dec 2024 00:33:02 +0000 Subject: hook up the interaction buttons to a dummy thing --- routes/note_fragment.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 routes/note_fragment.php (limited to 'routes') diff --git a/routes/note_fragment.php b/routes/note_fragment.php new file mode 100644 index 0000000..ef2e7b0 --- /dev/null +++ b/routes/note_fragment.php @@ -0,0 +1,10 @@ +mount('/fragment/note/:id/:action', function (array $args) { + $note = Note::find($args['id']); + // TODO: actually like/dislike/reshare the note as the currently signed in user + render_template('interaction_button', ['action' => $args['action'], 'active' => true, 'note' => $note]); +}); \ No newline at end of file -- cgit v1.3