diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-20 14:55:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-20 14:55:20 +0900 |
| commit | 4c43573c1ea34602b5d41998a0fa08708808de52 (patch) | |
| tree | 447f60f4dcf0ff376615eec600db8498a804dbfa /src | |
| parent | wip (diff) | |
| download | sharkey-4c43573c1ea34602b5d41998a0fa08708808de52.tar.gz sharkey-4c43573c1ea34602b5d41998a0fa08708808de52.tar.bz2 sharkey-4c43573c1ea34602b5d41998a0fa08708808de52.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/tags/timeline-post.tag | 12 |
1 files 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 6f5841a767..0d572981cb 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? |