1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 23:26:25 +09:00

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

TODO
* use nested tag for rendering correctly
This commit is contained in:
otofune 2017-03-01 00:54:02 +00:00
parent a7021b9514
commit d1b1113857

View File

@ -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