mainURL; $textareaValue = "@<$profile->nick $profile->mainURL> "; // TODO: Move this to twtxt.php or base.php // and make nav for general timeline to filter on posts vs. replies + all // Filter posts vs. replies $pattern = "/\(#\w{7}\)/"; $twt_replies = array_filter($twts, function ($twt) use ($pattern) { return preg_match($pattern, $twt->originalTwtStr); }); $twt_posts = array_filter($twts, function ($twt) use ($pattern) { return !preg_match($pattern, $twt->originalTwtStr); }); $twt_gallery = array_filter($twts, function ($twt) { return preg_match('/!\[(.*?)\]\((.*?)\)/', $twt->originalTwtStr); //return preg_match('/(]+>)/i', $twt->content); }); // Get active view/filter $is_gallery = str_contains(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), "gallery"); $is_replies = str_contains(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), "replies"); if ($is_gallery) { //$twts = $twt_gallery; $posts_active = ""; $replies_active = ""; $gallery_artive = "class='active'"; } elseif ($is_replies) { $twts = $twt_replies; $posts_active = ""; $replies_active = "class='active'"; $gallery_artive = ""; } else { $twts = $twt_posts; $posts_active = "class='active'"; $replies_active = ""; $gallery_artive = ""; } ?>
@nick?>domain?>

description?>