From 4c43573c1ea34602b5d41998a0fa08708808de52 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Feb 2017 14:55:20 +0900 Subject: [PATCH] wip --- src/web/app/desktop/tags/timeline-post.tag | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/web/app/desktop/tags/timeline-post.tag b/src/web/app/desktop/tags/timeline-post.tag index 6f5841a76..0d572981c 100644 --- a/src/web/app/desktop/tags/timeline-post.tag +++ b/src/web/app/desktop/tags/timeline-post.tag @@ -318,14 +318,14 @@ this.mixin('user-preview'); this.mixin('NotImplementedException'); - this.post = this.opts.post - this.is-repost = this.post.repost? and !this.post.text? - this.p = if @is-repost then this.post.repost else this.post + this.post = this.opts.post; + this.isRepost = this.post.repost != null && this.post.text == null; + this.p = this.isRepost ? this.post.repost : this.post; - this.title = @date-stringify this.p.created_at + this.title = this.dateStringify(this.p.created_at); - this.url = CONFIG.url + '/' + this.p.user.username + '/' + this.p.id - this.is-detail-opened = false + this.url = CONFIG.url + '/' + this.p.user.username + '/' + this.p.id; + this.isDetailOpened = false; this.on('mount', () => { if this.p.text?