Fix microformat for comments

This commit is contained in:
Lewis Dale committed 2023-03-14 09:15:54 +00:00
1 parent 0c316d18a2
commit f2e8bd7387
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ class Endpoint {
{ {
if (str_contains($class, "u-like-of")) { if (str_contains($class, "u-like-of")) {
return MentionType::Like; return MentionType::Like;
} else if (str_contains($class, "u-reply-to")) { } else if (str_contains($class, "u-in-reply-to")) {
return MentionType::Reply; return MentionType::Reply;
} }
+1 -1
View File
@@ -216,7 +216,7 @@ class EndpointTest extends TestCase {
<body> <body>
<h1>Some content</h1> <h1>Some content</h1>
<p>Here's some body content. It <a href="/another/page">contains a url</a>.</p> <p>Here's some body content. It <a href="/another/page">contains a url</a>.</p>
<p>I'm writing about <a href="$target" class="u-reply-to">this post</a>.</p> <p>I'm writing about <a href="$target" class="u-in-reply-to">this post</a>.</p>
</body> </body>
</html> </html>
XML; XML;