admin: URL Inspection immer auf en-US abfragen
coverageState ist ein übersetzter Anzeigetext; mit de-DE kam „Seite mit Weiterleitung" zurück und die Befund-Zuordnung griff ins Leere. Die Enum-Felder sind sprachunabhängig, der Text nicht. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f1648a05b0
commit
b44fdedbdf
1 changed files with 3 additions and 1 deletions
|
|
@ -94,7 +94,9 @@ class IndexStatusChecker
|
|||
throw new \RuntimeException(sprintf('Meldung %d hat auf %s keine öffentliche URL oder Property.', $pressRelease->id, $portal->value));
|
||||
}
|
||||
|
||||
$result = $this->client->inspect($url, $property, $pressRelease->language === 'en' ? 'en-US' : 'de-DE');
|
||||
// Immer en-US: `coverageState` ist ein übersetzter Anzeigetext, und
|
||||
// IndexState::fromIndexStatus() erkennt die englischen Fassungen.
|
||||
$result = $this->client->inspect($url, $property, 'en-US');
|
||||
$indexStatus = is_array($result['indexStatusResult'] ?? null) ? $result['indexStatusResult'] : [];
|
||||
|
||||
return PressReleaseIndexCheck::create([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue