timeline/views/conv.php
2023-10-19 07:33:50 +02:00

24 lines
No EOL
676 B
PHP

<?php require_once("partials/base.php");
// Get the hashes (both post and replies) as $id from the router and return an inverted list
if (!empty($id)) {
$twts = array_filter($twts, function($twt) use ($id) {
return $twt->hash === $id || $twt->replyToHash === $id;
});
$twts = array_reverse($twts, true);
}
// && !preg_match('/conv/', $request)
$title = "Conversation: ".$id." - ".$title;
include 'partials/header.php';
?>
<h2>Conversation</h2>
<p>Recent twts in reply to <a href="/post/<?= $id ?>">#<?= $id ?></a></p>
<!-- PHP: GET TIMELIE --><?php include 'partials/timeline.php'?>
<!-- PHP: GET FOOTER --><?php include 'partials/footer.php';?>