summaryrefslogtreecommitdiffstats
path: root/src/store
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2019-09-12 17:30:01 +0200
committerMaxence Lange <maxence@artificial-owl.com>2019-09-25 14:06:47 +0200
commitde841d182691fc52771217f46d60609db91a0061 (patch)
treee7fd0835c450d1bebdb3e0a363dcaa98099a7441 /src/store
parent686f193c997e273fe1e7f6cd661b15fa9846dfd8 (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.js2
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)
}