aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/note.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/note.php')
-rw-r--r--templates/note.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/note.php b/templates/note.php
index 19a1895..6835a0f 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -5,7 +5,7 @@ use Digitigrade\Model\NotePrivacyScope;
use Digitigrade\Model\UserAccount;
use Digitigrade\UserSettings;
-const MAX_PREVIEW_CARDS = 1;
+$MAX_PREVIEW_CARDS = 1;
$user = UserAccount::findByCurrentSession();
$prefs = $user ? new UserSettings($user) : null;
@@ -95,7 +95,7 @@ $pathToSelf = '/@/' . $note->author->getFullHandle() . '/note/' . $note->id;
$i = 0;
foreach ($note->getLinkPreviews() as $preview) {
call_template("note_link_preview", ['preview' => $preview]);
- if (++$i > MAX_PREVIEW_CARDS)
+ if (++$i > $MAX_PREVIEW_CARDS)
break;
}
?>