[Client] Fix bug

This commit is contained in:
syuilo 2017-02-25 14:57:17 +09:00
parent e5c09fa11e
commit dd9ff67628

View File

@ -9,7 +9,7 @@
<span class="username">@{ post.user.username }</span> <span class="username">@{ post.user.username }</span>
</div> </div>
<div class="right"> <div class="right">
<a class="time" href={ url }> <a class="time" href={ '/' + this.post.user.username + '/' + this.post.id }>
<mk-time time={ post.created_at }></mk-time> <mk-time time={ post.created_at }></mk-time>
</a> </a>
</div> </div>
@ -120,9 +120,6 @@
this.mixin('user-preview'); this.mixin('user-preview');
this.post = this.opts.post; this.post = this.opts.post;
this.url = CONFIG.url + '/' + this.post.user.username + '/' + this.post.id;
this.title = this.dateStringify(this.post.created_at); this.title = this.dateStringify(this.post.created_at);
this.on('mount', () => { this.on('mount', () => {