fix: weird paste updated_at display

This commit is contained in:
Floorb 2023-06-01 15:23:40 -04:00
parent ea09c62dc6
commit 1b1a3795e4

View file

@ -85,10 +85,11 @@ $selectedloader = "$bg[$i]"; // set variable equal to which random filename was
<small class="title is-6 has-text-weight-normal has-text-grey"> <small class="title is-6 has-text-weight-normal has-text-grey">
By <a href="<?= urlForMember($paste->user) ?>"><?= pp_html_escape($paste->user->username) ?></a> By <a href="<?= urlForMember($paste->user) ?>"><?= pp_html_escape($paste->user->username) ?></a>
<br/> <br/>
Created: <?= $paste['created_at'] ?> Created: <?= $paste->created_at ?>
<br/>
<?php if ($paste->updated_at !== null && $paste->updated_at !== $paste->created_at): ?>
Updated: <?= $paste->updated_at ?>
<br/> <br/>
<?php if ($paste['updated_at'] != $paste['created_at']): ?>
Updated: <?= $paste['updated_at'] ?>
<?php endif; ?> <?php endif; ?>
Expiry: <?= $paste->expiryDisplay() ?> Expiry: <?= $paste->expiryDisplay() ?>
</small> </small>