From c8ba81897c24467f2ba27444d73fa07d757eaebb Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Mon, 29 Nov 2021 15:09:31 +0000 Subject: [PATCH] [PLUGINS][Reply] getReplyToNote performance improvement [CSS] Replies padding fix --- plugins/Reply/Entity/NoteReply.php | 2 +- public/assets/default_theme/css/pages/feeds.css | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/Reply/Entity/NoteReply.php b/plugins/Reply/Entity/NoteReply.php index 7d0755aea3..6a9e9fd5a2 100644 --- a/plugins/Reply/Entity/NoteReply.php +++ b/plugins/Reply/Entity/NoteReply.php @@ -95,7 +95,7 @@ class NoteReply extends Entity $result = DB::dql('select nr.reply_to from note_reply nr ' . 'where nr.note_id = :note_id', ['note_id' => $note->getId()], ); - if (!\is_null($result) && \array_key_exists(0, $result)) { + if (\array_key_exists(0, $result)) { return $result[0]['reply_to']; } diff --git a/public/assets/default_theme/css/pages/feeds.css b/public/assets/default_theme/css/pages/feeds.css index de65d93dd4..70f9c73af3 100644 --- a/public/assets/default_theme/css/pages/feeds.css +++ b/public/assets/default_theme/css/pages/feeds.css @@ -130,9 +130,8 @@ border-radius: var(--smaller); } -.h-entry .replies .h-entry { - background-color: unset; - padding: 0 var(--smaller) var(--smaller) 0; +.h-entry .replies { + padding: var(--smaller); margin-left: var(--small) }