Change `dateCreated` property to `datePublished`
authorMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2024 13:47:12 +0000 (14:47 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 20 Mar 2024 13:47:12 +0000 (14:47 +0100)
It seems that Google prefers `datePublished`.

com.woltlab.wcf/templates/commentList.tpl
com.woltlab.wcf/templates/commentResponseList.tpl

index 2b457b5835c83e2d03fa467d1eeecb5a4dee0dcb..4c6c383fd7d42a806b812cdae43f938328e7dd09 100644 (file)
@@ -29,7 +29,7 @@
                                                {/if}
                                        </div>
                                        <div class="comment__date">
-                                               <meta itemprop="dateCreated" content="{@$comment->time|date:'c'}">
+                                               <meta itemprop="datePublished" content="{@$comment->time|date:'c'}">
                                                <a href="{$comment->getLink()}" class="comment__permalink">{@$comment->time|time}</a>
                                        </div>
                                        <div class="comment__status">
index f28cd6e8fc81dcd444bf55c152917f0cec673f0f..bda6085439f2f8bc2aad5a900fa808e21dad431a 100644 (file)
@@ -26,7 +26,7 @@
                                                {/if}
                                        </div>
                                        <div class="commentResponse__date">
-                                               <meta itemprop="dateCreated" content="{@$response->time|date:'c'}">
+                                               <meta itemprop="datePublished" content="{@$response->time|date:'c'}">
                                                <a href="{$response->getLink()}" class="commentResponse__permalink">{@$response->time|time}</a>
                                        </div>
                                        <div class="commentResponse__status">