mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-12 14:51:02 +01:00
[client] entrance -> public timeline: show processed posts (WIP)
TODO * use nested tag for rendering correctly
This commit is contained in:
parent
a7021b9514
commit
d1b1113857
1 changed files with 7 additions and 1 deletions
|
@ -60,6 +60,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
this.mixin('api');
|
this.mixin('api');
|
||||||
|
this.mixin('text')
|
||||||
|
|
||||||
this.posts = [];
|
this.posts = [];
|
||||||
this.isFetching = true;
|
this.isFetching = true;
|
||||||
|
@ -69,7 +70,12 @@
|
||||||
limit: 5,
|
limit: 5,
|
||||||
include_reposts: false,
|
include_reposts: false,
|
||||||
include_replies: 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({
|
this.update({
|
||||||
isFetching: false,
|
isFetching: false,
|
||||||
posts: posts
|
posts: posts
|
||||||
|
|
Loading…
Reference in a new issue