aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-24 14:27:30 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit955f75f1c049e4b81f2995ef4e90f5d4a657077a (patch)
tree5bb12bf43cea5aac9bd41882ee6b1f28f727c303 /vnext/src/components/Message.js
parent9643826617928fd23722497a308fd8d24d873cd7 (diff)
drop schema.org metadata
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index b36936ba..1ecbf996 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -11,12 +11,12 @@ import { format } from '../utils/embed';
export default function Message({ data, visitor, children, ...rest }) {
return (
- <div className="msg-cont" itemProp="blogPost" itemScope="" itemType="http://schema.org/BlogPosting" itemRef="org">
+ <div className="msg-cont">
<header className="h">
<Avatar user={data.user}>
<div className="msg-ts">
<Link to={{ pathname: `/${data.user.uname}/${data.mid}`, state: { msg: data } }}>
- <time itemProp="datePublished dateModified" itemType="http://schema.org/Date" dateTime={data.timestamp}
+ <time dateTime={data.timestamp}
title={moment.utc(data.timestamp).local().format('lll')}>
{moment.utc(data.timestamp).fromNow()}
</time>
@@ -26,11 +26,11 @@ export default function Message({ data, visitor, children, ...rest }) {
<Tags user={data.user} data={data.tags || []} />
</header>
<div className="msg-txt">
- <p itemProp="description" dangerouslySetInnerHTML={{ __html: format(data.body, data.mid, (data.tags || []).indexOf('code') >= 0) }}></p>
+ <p dangerouslySetInnerHTML={{ __html: format(data.body, data.mid, (data.tags || []).indexOf('code') >= 0) }}></p>
</div>
{data.photo &&
<p className="ir"><a href={`//i.juick.com/p/${data.mid}.${data.attach}`} data-fname={`${data.mid}.${data.attach}`}>
- <img itemProp="image" src={`//i.juick.com/photos-512/${data.mid}.${data.attach}`} alt="" /></a>
+ <img src={`//i.juick.com/photos-512/${data.mid}.${data.attach}`} alt="" /></a>
</p>
}
<nav className="l">
@@ -91,7 +91,7 @@ export default function Message({ data, visitor, children, ...rest }) {
function Tags({ data, user, ...rest }) {
return data.length > 0 && (
- <div className="msg-tags" itemProp="headline">
+ <div className="msg-tags">
{
data.map(tag => {
return (<Link key={tag} to={{ pathname: `/${user.uname}`, search: `?tag=${tag}` }} title={tag}>{tag}</Link>);