FIX: include only author username in the schema (#25106)

This commit is contained in:
Arpit Jalan 2024-01-03 12:16:29 +05:30 committed by GitHub
parent 5530cb574b
commit 69383e9afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,7 @@
<% if @topic_view.prev_page %>
<meta itemprop='datePublished' content='<%= @topic_view.topic.created_at.to_formatted_s(:iso8601) %>'>
<span itemprop='author' itemscope itemtype="http://schema.org/Person">
<link itemprop='url' href='<%= @topic_view.topic.user.username %>'>
<meta itemprop='name' content='<%= Discourse.base_url %>/u/<%= @topic_view.topic.user.username %>'>
<meta itemprop='name' content='<%= @topic_view.topic.user.username %>'>
</span>
<meta itemprop='text' content='<%= @topic_view.topic.excerpt %>'>
<% end %>