[PLUGINS][Reply] getReplyToNote performance improvement

[CSS] Replies padding fix
This commit is contained in:
Eliseu Amaro 2021-11-29 15:09:31 +00:00 committed by Diogo Peralta Cordeiro
parent 01078e20fb
commit c8ba81897c
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
2 changed files with 3 additions and 4 deletions

View File

@ -95,7 +95,7 @@ class NoteReply extends Entity
$result = DB::dql('select nr.reply_to from note_reply nr ' $result = DB::dql('select nr.reply_to from note_reply nr '
. 'where nr.note_id = :note_id', ['note_id' => $note->getId()], ); . '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']; return $result[0]['reply_to'];
} }

View File

@ -130,9 +130,8 @@
border-radius: var(--smaller); border-radius: var(--smaller);
} }
.h-entry .replies .h-entry { .h-entry .replies {
background-color: unset; padding: var(--smaller);
padding: 0 var(--smaller) var(--smaller) 0;
margin-left: var(--small) margin-left: var(--small)
} }