1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 17:04:26 +02:00

Rename post.time

This commit is contained in:
Toby Zerner
2018-08-24 21:25:45 +09:30
parent d47c406d9c
commit ae75f21b6b
5 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ import fullTime from '../../common/helpers/fullTime';
export default class PostMeta extends Component {
view() {
const post = this.props.post;
const time = post.time();
const time = post.createdAt();
const permalink = this.getPermalink(post);
const touch = 'ontouchstart' in document.documentElement;

View File

@@ -205,7 +205,7 @@ class PostStream extends Component {
const attrs = {'data-index': this.visibleStart + i};
if (post) {
const time = post.time();
const time = post.createdAt();
const PostComponent = app.postComponents[post.contentType()];
content = PostComponent ? PostComponent.component({post}) : '';