b15c74632b
- API: ausdrueckliche iconUrl wird nur auf Form (http/https, <= 2048) geprueft und auch gespeichert, wenn der Server sie nicht abrufen kann; keine 422 mehr - Erkennung: Seite mit Fehlerstatus, aber HTML mit <link rel=icon>, liefert diesen Verweis (docuvita); og:image einer Fehlerseite zaehlt nicht - Kachel: Proxy -> iconUrl direkt im Browser (no-referrer, nur http/https) -> Origin-Favicon -> Buchstabe - Meldung iconUrlUnreachable (de/en) entfernt, Hinweis zum Vorrang angepasst Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
35 lines
510 B
TypeScript
35 lines
510 B
TypeScript
import {
|
|
IsInt,
|
|
IsNotEmpty,
|
|
IsOptional,
|
|
IsString,
|
|
IsUrl,
|
|
IsUUID,
|
|
MaxLength,
|
|
} from 'class-validator';
|
|
|
|
/**
|
|
* DTO for creating a new FavoriteLink.
|
|
* widgetId scopes the link to a specific widget instance (T-08-06 / Pitfall 3).
|
|
*/
|
|
export class CreateFavoriteDto {
|
|
@IsUUID()
|
|
widgetId!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
title!: string;
|
|
|
|
@IsUrl()
|
|
url!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@MaxLength(2048)
|
|
iconUrl?: string;
|
|
|
|
@IsOptional()
|
|
@IsInt()
|
|
position?: number;
|
|
}
|