blob: d16c6aa91469159147433a601452bc11ee16d174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
use Digitigrade\Model\Note;
use Digitigrade\Model\UserAccount;
call_template('skeleton', [
'pageTitle' => '"' . $note->plainContent . '" - @' . $note->author->getFullHandle(),
'renderTitleHeading' => false
], function () {
global $note;
$notes = Note::findAllInThread($note->threadApex ?? $note);
$user = UserAccount::findByCurrentSession();
foreach ($notes as $n) {
if ($user != null && $user->actor->blocks($n->author)) {
call_template('note_hidden');
} else {
call_template('note', ['note' => $n, 'selected' => $n == $note]);
}
}
});
|