Changed range filter to routes for every view.

This commit is contained in:
2020-05-09 01:10:07 +02:00
parent 525995615a
commit de5b729c0b
16 changed files with 125 additions and 73 deletions

View File

@@ -46,7 +46,7 @@ function curateActor(actor) {
}
function initActorActions(store, _router) {
async function fetchActorBySlug({ _commit }, { slug, limit = 100, range = 'latest' }) {
async function fetchActorBySlug({ _commit }, { actorSlug, limit = 100, range = 'latest' }) {
const { before, after, orderBy } = getDateRange(range);
const { actor } = await graphql(`
@@ -171,7 +171,7 @@ function initActorActions(store, _router) {
}
}
`, {
actorSlug: slug,
actorSlug,
limit,
after,
before,