Fixed urn:uuid: prefix on message ids

This commit is contained in:
Chris 2024-03-12 02:26:08 +01:00
parent e10fd6c471
commit 5aa4361cc4
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class MercureHandler
// Put an id in there if none already
if (empty($data['id']) || $this->config->getOverwriteMessageIds()) {
$data['id'] = (string)Uuid::v7();
$data['id'] = "urn:uuid:".(string)Uuid::v7();
}
// Attempt to create the message
@ -192,7 +192,7 @@ class MercureHandler
$this->topicManager->publish($message);
});
return Response::plaintext("urn:uuid:".$message->id."\n");
return Response::plaintext($message->id."\n");
}
private function checkTopicClaims(string|array $topic, array $claims): bool