blob: 119f879981821fc1bfe7421c0dd92ae679cf7c30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?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', ['note' => $n, 'selected' => $n == $note]);
}
}
});
|