summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-20 14:55:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-20 14:55:20 +0900
commit4c43573c1ea34602b5d41998a0fa08708808de52 (patch)
tree447f60f4dcf0ff376615eec600db8498a804dbfa /src
parentwip (diff)
downloadsharkey-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.tag12
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?