diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2019-09-12 17:30:01 +0200 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-09-25 14:06:47 +0200 |
commit | de841d182691fc52771217f46d60609db91a0061 (patch) | |
tree | e7fd0835c450d1bebdb3e0a363dcaa98099a7441 /src/store | |
parent | 686f193c997e273fe1e7f6cd661b15fa9846dfd8 (diff) |
Trying to create a new timeline for showing a single post's context (replies and partens)
using Maxence's new endpoints (eg: 'apps/social/local/v1/post/replies?id=').
It doesn't work yet though.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/timeline.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/store/timeline.js b/src/store/timeline.js index f140da91..f4419736 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -189,6 +189,8 @@ const actions = { url = OC.generateUrl(`apps/social/api/v1/account/${state.account}/stream?limit=25&since=` + sinceTimestamp) } else if (state.type === 'tags') { url = OC.generateUrl(`apps/social/api/v1/stream/tag/${state.params.tag}?limit=25&since=` + sinceTimestamp) + } else if (state.type === 'post') { + url = OC.generateUrl(`apps/social/local/v1/post/replies?id=${state.params.id}&limit=5&since=0`) } else { url = OC.generateUrl(`apps/social/api/v1/stream/${state.type}?limit=25&since=` + sinceTimestamp) } |