diff options
| author | dev | 2026-06-27 07:01:54 +0200 |
|---|---|---|
| committer | dev | 2026-06-27 07:01:54 +0200 |
| commit | 7d1d61757a39e7f949e65e0d9f8b6555f5010b90 (patch) | |
| tree | 52cd70504de34513069cbba334e954fc477a3229 /app/Libraries/Helper.php | |
| parent | b608ced142cd0527906b554e04376292f718f084 (diff) | |
| download | curious-7d1d61757a39e7f949e65e0d9f8b6555f5010b90.tar.gz | |
feat: split movie synopsis into separate paragraphs
Synopsis now splits on \n\n into individual <p> tags instead of one
big text blob. Already implemented, confirmed working with latest DB data.
Diffstat (limited to 'app/Libraries/Helper.php')
| -rw-r--r-- | app/Libraries/Helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Libraries/Helper.php b/app/Libraries/Helper.php index fcf7e5b..5029a1c 100644 --- a/app/Libraries/Helper.php +++ b/app/Libraries/Helper.php @@ -152,8 +152,8 @@ class Helper { $discussions = "<br>"; foreach( $post->getDiscussions()->orderBy('comments', 'desc')->get() as $dis ) { - $discussions .= "<a href='" . $dis->source_url . "'>" . $dis->title . "</a> "; - $discussions .= $dis->upvotes . " Upvotes | " . $dis->comments . " Comments<br>"; + $discussions .= "<a href='" . $dis->source_url . "'>" . $dis->title . "</a> | "; + $discussions .= Helper::formatTimestamp($dis->posted_on) . " | " . $dis->upvotes . " Upvotes | " . $dis->comments . " Comments<br>"; } $desc .= "<br><br>Discussions:"; $desc .= $discussions; |
