Auto-embed gifs from .gif links

Этот коммит содержится в:
JoramWilander
2015-10-22 08:45:28 -04:00
родитель 02a6f6b2cd
Коммит d4f1f981a5
4 изменённых файлов: 72 добавлений и 5 удалений

Просмотреть файл

@@ -120,6 +120,10 @@ export default class Post extends React.Component {
var parentPost = this.props.parentPost;
var posts = this.props.posts;
if (!post.props) {
post.props = {};
}
var type = 'Post';
if (post.root_id && post.root_id.length > 0) {
type = 'Comment';
@@ -140,7 +144,7 @@ export default class Post extends React.Component {
}
var currentUserCss = '';
if (UserStore.getCurrentId() === post.user_id) {
if (UserStore.getCurrentId() === post.user_id && !post.props.from_webhook) {
currentUserCss = 'current--user';
}
@@ -200,6 +204,7 @@ export default class Post extends React.Component {
posts={posts}
handleCommentClick={this.handleCommentClick}
retryPost={this.retryPost}
resize={this.props.resize}
/>
<PostInfo
ref='info'
@@ -223,5 +228,6 @@ Post.propTypes = {
sameUser: React.PropTypes.bool,
sameRoot: React.PropTypes.bool,
hideProfilePic: React.PropTypes.bool,
isLastComment: React.PropTypes.bool
isLastComment: React.PropTypes.bool,
resize: React.PropTypes.func
};