Fixed urn:uuid: prefix on message ids
This commit is contained in:
		@@ -182,7 +182,7 @@ class MercureHandler
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // Put an id in there if none already
 | 
					        // Put an id in there if none already
 | 
				
			||||||
        if (empty($data['id']) || $this->config->getOverwriteMessageIds()) {
 | 
					        if (empty($data['id']) || $this->config->getOverwriteMessageIds()) {
 | 
				
			||||||
            $data['id'] = (string)Uuid::v7();
 | 
					            $data['id'] = "urn:uuid:".(string)Uuid::v7();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Attempt to create the message
 | 
					        // Attempt to create the message
 | 
				
			||||||
@@ -192,7 +192,7 @@ class MercureHandler
 | 
				
			|||||||
            $this->topicManager->publish($message);
 | 
					            $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
 | 
					    private function checkTopicClaims(string|array $topic, array $claims): bool
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user