From 07650486b3fae1b1fb5cc1b4fc6c1710edeb3f05 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Wed, 15 Apr 2020 17:52:06 -0500 Subject: [PATCH] Update --- modules/timeline.php | 10 +++++----- templates/textpost.txt | 21 +++++++++------------ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/modules/timeline.php b/modules/timeline.php index a8cb832..a61b92d 100644 --- a/modules/timeline.php +++ b/modules/timeline.php @@ -333,12 +333,12 @@ if ((!isset($thread[0]['id']) && !empty($thread)) || !is_array($thread)) { } } - //if ((empty($elem['media_attachments']) && $post['media'] == "") || (!(empty($elem['media_attachments']) && $post['media'] == "") && $user_settings['attach'] == "off")) { - //$post['template'] = themes("get","templates/textpost.txt"); - //} - //else { + if ((empty($elem['media_attachments']) && $post['media'] == "") || (!(empty($elem['media_attachments']) && $post['media'] == "") && $user_settings['attach'] == "off")) { + $post['template'] = themes("get","templates/textpost.txt"); + } + else { $post['template'] = themes("get","templates/post.txt"); - //} + } foreach ($post as $key => $value) { $post['template'] = str_replace(":$key:", $value, $post['template']); diff --git a/templates/textpost.txt b/templates/textpost.txt index a41ff26..6f07178 100644 --- a/templates/textpost.txt +++ b/templates/textpost.txt @@ -1,23 +1,20 @@
-
-
+
+
:ancestors:
- - - :name: :rt: - + :name: :rt:
-
-
:spoiler: :replyto: :text:
-
- + :spoiler: +
+ :replyto: :text: +
+
:notes:
-
:descendants:
+
:descendants:
-