summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeveloper2026-06-27 04:24:15 +0200
committerDeveloper2026-06-27 04:24:15 +0200
commit6733c0b6d377ee2164e7a3ff6e8791859bff86d4 (patch)
tree672f06689df51a0e0fbc0e3c3844275b6a12acd8
parent37d10995adc02c4d3e8fd130e7524d14c56d643b (diff)
downloadcurious-6733c0b6d377ee2164e7a3ff6e8791859bff86d4.tar.gz
fix: truncate HN comment text to 80 chars with ellipsis
-rw-r--r--resources/views/cinema_show.blade.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/cinema_show.blade.php b/resources/views/cinema_show.blade.php
index 175d51b..f9e613f 100644
--- a/resources/views/cinema_show.blade.php
+++ b/resources/views/cinema_show.blade.php
@@ -146,7 +146,7 @@
<li>
<a class="card-links" href="https://news.ycombinator.com/item?id={{ $story->story_id }}" target="_blank">
@if ($story->type === 'comment' && ! empty($story->text))
- <span class="hn-comment">Comment: {{ strip_tags($story->text) }}</span>
+ <span class="hn-comment">Comment: {{ Str::limit(strip_tags($story->text), 80) }}</span>
@else
{{ $story->title ?: 'HN Story' }}
@endif