summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorotofune <otofune@gmail.com>2017-03-01 00:54:02 +0000
committerotofune <otofune@gmail.com>2017-03-01 02:48:06 +0000
commitd1b1113857c77928014a2ff6052ef6b0f9773e2e (patch)
tree01127201cbb70dc3d3bfadf0f43a4201bad6c64f /src/web/app
parentFix type (diff)
downloadsharkey-d1b1113857c77928014a2ff6052ef6b0f9773e2e.tar.gz
sharkey-d1b1113857c77928014a2ff6052ef6b0f9773e2e.tar.bz2
sharkey-d1b1113857c77928014a2ff6052ef6b0f9773e2e.zip
[client] entrance -> public timeline: show processed posts (WIP)
TODO * use nested tag for rendering correctly
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/common/tags/public-timeline.tag8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/web/app/common/tags/public-timeline.tag b/src/web/app/common/tags/public-timeline.tag
index 1bc18e5a8a..65fe27f557 100644
--- a/src/web/app/common/tags/public-timeline.tag
+++ b/src/web/app/common/tags/public-timeline.tag
@@ -60,6 +60,7 @@
</style>
<script>
this.mixin('api');
+ this.mixin('text')
this.posts = [];
this.isFetching = true;
@@ -69,7 +70,12 @@
limit: 5,
include_reposts: false,
include_replies: false
- }).then(posts => {
+ }).then(data => {
+ const posts = data.map(datum => {
+ const tokens = this.analyze(datum.text);
+ datum.text = this.compile(tokens);
+ return datum;
+ });
this.update({
isFetching: false,
posts: posts