Gefällt mir im Feed, Suche links in der App-Kopfzeile (0.58.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 13m31s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 13m53s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 13m53s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 13m44s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 12m3s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 12m20s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m35s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m1s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 12m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 4m56s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-10-01 14:55:48 +00:00
parent 086878c733
commit b2599f7bc3
141 changed files with 467 additions and 379 deletions

View file

@ -214,6 +214,7 @@ class NewsPlugin extends Plugin
'image_url' => $post->coverUrl('large'),
'url' => '/neuigkeiten/'.$post->slug,
'stats' => ['likes' => (int) ($post->likes_count ?? 0), 'comments' => $post->comments_enabled ? (int) ($post->comments_count ?? 0) : null],
'like' => ['liked' => (bool) ($post->liked ?? false), 'url' => '/neuigkeiten/'.$post->slug.'/herz'],
]));
}