From 7694cb27bc4f662a08faa6745d40c2e67f9577a4 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Tue, 21 May 2024 16:51:27 +0200 Subject: [PATCH] Parse `serverMediaID` to string instead of using interpolation --- .../Gutenberg/Processors/GutenbergGalleryUploadProcessor.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/Gutenberg/Processors/GutenbergGalleryUploadProcessor.swift b/WordPress/Classes/ViewRelated/Gutenberg/Processors/GutenbergGalleryUploadProcessor.swift index 3c11743febd5..71afaf0cdadc 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/Processors/GutenbergGalleryUploadProcessor.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/Processors/GutenbergGalleryUploadProcessor.swift @@ -56,7 +56,7 @@ class GutenbergGalleryUploadProcessor: GutenbergProcessor { _ = try? imgTag.attr("src", self.remoteURLString) _ = try? imgTag.attr("class", newImgClassAttributes) - _ = try? imgTag.attr(ImageKeys.dataID, "\(self.serverMediaID)") + _ = try? imgTag.attr(ImageKeys.dataID, String(self.serverMediaID)) _ = try? imgTag.attr(ImageKeys.dataFullURL, self.remoteURLString) if let _ = try? imgTag.attr(ImageKeys.dataLink) {