aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/timeline.inc.php')
-rw-r--r--templates/timeline.inc.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/templates/timeline.inc.php b/templates/timeline.inc.php
index 61a889d..9295a71 100644
--- a/templates/timeline.inc.php
+++ b/templates/timeline.inc.php
@@ -15,10 +15,10 @@
// get posts
$posts = db_select_posts(NOW, $config['posts_per_page'], 'desc', $offset);
- if(empty($posts)) {
- header('Location: '.$config['url']);
- die();
- }
+ // if(empty($posts)) {
+ // header('Location: '.$config['url']);
+ // die();
+ // }
$title_suffix = '';
require(ROOT.DS.'snippets'.DS.'header.snippet.php');
@@ -47,14 +47,6 @@
</a>
<nav class="post-meta">
<ul>
- <?php if($config['activitypub']):
- // todo: is it possible to retrieve this at the same time as post data?
- $post_stats = activitypub_get_post_stats('both', $post['id']);
- ?>
- <li class="post-likes"><a href="<?= $config['url'] ?>/<?= $post['id'] ?>/likes" title="This post has been liked <?= $post_stats['like'] ?> times in the Fediverse"><span class="amount"><?= $post_stats['like'] ?></span><span class="word">Likes</span></a></li>
- <li class="post-boosts"><a href="<?= $config['url'] ?>/<?= $post['id'] ?>/boosts" title="This post has been announced <?= $post_stats['announce'] ?> times in the Fediverse"><span class="amount"><?= $post_stats['announce'] ?></span><span class="word">Boosts</span></a></li>
- <?php endif; ?>
-
<?php if($config['logged_in']): ?>
<li><a href="<?= $config['url'] ?>/<?= $post['id'] ?>/edit">Edit</a></li>
<li><a href="<?= $config['url'] ?>/<?= $post['id'] ?>/delete">Delete</a></li>