legal/web: Zustimmungsgate je Dokumentversion (aus bis AGB 0.7), OG-Variante mit eingebranntem Bildnachweis, Nachweis in Teasern (Bildkennzeichnung Blöcke G und H)
- legal_document_acceptances (insert-only), LegalAcceptanceGate, Pflicht-Schalter im Einreichungs-Modal über den gemeinsamen Trait; API: GET/POST /api/v1/legal/acceptances, submit antwortet 428 mit den geforderten Fassungen; LEGAL_ACCEPTANCE_GATE - ImageService: og-Variante (1200×630) mit halbtransparentem Balken und Inter SemiBold, regenerateOgVariant() für Korrekturen und Bestand; Fokuspunkt/Letterbox getestet - Uploader brennt den Nachweis beim Upload ein, ImageCorrectionService baut die OG-Variante nach einer Korrektur neu; Artikelseite nutzt og für og:image - Teaser: Nachweis in alt/title (Feed, Hero, Kategorie, Newsroom), Unterschrift am Hero-Bild; PressRelease::cardImageCredit() Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
b5b70416f2
commit
075d0d931f
27 changed files with 866 additions and 15 deletions
|
|
@ -17,6 +17,7 @@ use App\Scopes\PortalScope;
|
|||
use App\Services\ActivityLog;
|
||||
use App\Services\PressRelease\PressReleaseHtmlSanitizer;
|
||||
use App\Support\ContentFingerprint;
|
||||
use App\Support\ImageCredit;
|
||||
use Closure;
|
||||
use Database\Factories\PressReleaseFactory;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
|
@ -263,6 +264,17 @@ class PressRelease extends Model
|
|||
* Fallback Original. Null bei bildlosen PMs (dann greift
|
||||
* chosenPlaceholderUrl() bzw. der generische Fallback der Komponente).
|
||||
*/
|
||||
/**
|
||||
* Nachweiszeile des Titelbilds für Teaser (Bildkennzeichnung H.2):
|
||||
* „Foto: …" bzw. „Quelle: …" plus KI-Zusatz, null ohne Bild.
|
||||
*/
|
||||
public function cardImageCredit(): ?string
|
||||
{
|
||||
$image = $this->relationLoaded('images') ? $this->images->first() : null;
|
||||
|
||||
return $image ? ImageCredit::for($image, $this->company)->line() : null;
|
||||
}
|
||||
|
||||
public function cardImageUrl(): ?string
|
||||
{
|
||||
$image = $this->images?->first();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue