diff options
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r-- | vnext/src/components/Message.js | 10 |
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>); |