Skip to content
Snippets Groups Projects
Commit d1b11138 authored by otofune's avatar otofune
Browse files

[client] entrance -> public timeline: show processed posts (WIP)

TODO
* use nested tag for rendering correctly
parent a7021b95
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment