App zeigt Plugins ohne neue App-Version (0.60.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 10m32s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 10m37s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 17m19s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 17m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 16m33s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 16m27s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 13m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 14m15s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m18s

API: Feed, Aufgaben, Schnellzugriffe, Menü; Einmal-Link für eingebettete
Portalseiten ohne Kopf- und Fußzeile.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-10-06 19:46:34 +00:00
parent 8cef93965e
commit 7b20d40994
145 changed files with 572 additions and 372 deletions

View file

@ -229,7 +229,8 @@ 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'],
// App (Token) über die API, Browser über die Sitzung
'like' => ['liked' => (bool) ($post->liked ?? false), 'url' => request()->is('api/*') ? '/api/v1/news/'.$post->slug.'/like' : '/neuigkeiten/'.$post->slug.'/herz'],
]));
}