aboutsummaryrefslogtreecommitdiff
path: root/templates/timeline.inc.php
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-09-02 00:18:55 -0600
committerIván Ávalos <avalos@disroot.org>2023-09-02 00:41:00 -0600
commitaa1bac9aa30c6ba8ff48c8b70dfc523e3197e315 (patch)
treebe33e8c6dd22e1eb62a02488c0a305f11fcbfa75 /templates/timeline.inc.php
parent706c4cc1fa62492344089a3310c7bcea1041f78b (diff)
downloadmicroblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.gz
microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.tar.bz2
microblog-aa1bac9aa30c6ba8ff48c8b70dfc523e3197e315.zip
Remove ActivityPub and Twitter support, and fix localhost
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>