From 8cf95522aad19a5a9a97e4fa2ad75de008ed37fb Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 25 Feb 2017 14:45:43 +0900 Subject: [PATCH] Fix #204 --- src/web/app/desktop/tags/post-detail-sub.tag | 27 ++++++++++++++------ src/web/app/mobile/tags/post-detail.tag | 8 +++--- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/web/app/desktop/tags/post-detail-sub.tag b/src/web/app/desktop/tags/post-detail-sub.tag index f1b3c915cb..3093d461f0 100644 --- a/src/web/app/desktop/tags/post-detail-sub.tag +++ b/src/web/app/desktop/tags/post-detail-sub.tag @@ -1,14 +1,25 @@ -avatar + + + avatar +
-
{ post.user.name }@{ post.user.username }
- +
+ { post.user.name } + @{ post.user.username } +
+
+ + + +
- { + + { +
@@ -115,10 +126,10 @@ this.title = this.dateStringify(this.post.created_at); this.on('mount', () => { - if (this.p.text) { - const tokens = this.analyze(this.p.text); + if (this.post.text) { + const tokens = this.analyze(this.post.text); - this.refs.text.innerHTML = this.refs.text.innerHTML.replace('

', this.compile(tokens)); + this.refs.text.innerHTML = this.compile(tokens); this.refs.text.children.forEach(e => { if (e.tagName == 'MK-URL') riot.mount(e); diff --git a/src/web/app/mobile/tags/post-detail.tag b/src/web/app/mobile/tags/post-detail.tag index e8149e0982..900bd228c9 100644 --- a/src/web/app/mobile/tags/post-detail.tag +++ b/src/web/app/mobile/tags/post-detail.tag @@ -41,8 +41,10 @@ { - - + + + +