forked from DebaucheryLibrarian/traxxx
Added dark and SFW modes.
This commit is contained in:
@@ -31,6 +31,12 @@ function initTagsActions(store, _router) {
|
||||
thumbnail
|
||||
path
|
||||
comment
|
||||
sfw: sfwMedia {
|
||||
id
|
||||
thumbnail
|
||||
path
|
||||
comment
|
||||
}
|
||||
}
|
||||
}
|
||||
photos: tagsPhotos {
|
||||
@@ -39,6 +45,12 @@ function initTagsActions(store, _router) {
|
||||
thumbnail
|
||||
path
|
||||
comment
|
||||
sfw: sfwMedia {
|
||||
id
|
||||
thumbnail
|
||||
path
|
||||
comment
|
||||
}
|
||||
}
|
||||
}
|
||||
releases: releasesTags(
|
||||
@@ -81,7 +93,7 @@ function initTagsActions(store, _router) {
|
||||
exclude: store.state.ui.filter,
|
||||
});
|
||||
|
||||
return curateTag(tagBySlug);
|
||||
return curateTag(tagBySlug, store);
|
||||
}
|
||||
|
||||
async function fetchTags({ _commit }, {
|
||||
@@ -110,6 +122,9 @@ function initTagsActions(store, _router) {
|
||||
poster: tagsPosterByTagId {
|
||||
media {
|
||||
thumbnail
|
||||
sfw: sfwMedia {
|
||||
thumbnail
|
||||
}
|
||||
}
|
||||
}
|
||||
group {
|
||||
@@ -123,7 +138,7 @@ function initTagsActions(store, _router) {
|
||||
limit,
|
||||
});
|
||||
|
||||
return tags.map(tag => curateTag(tag));
|
||||
return tags.map(tag => curateTag(tag, store.state.ui.sfw));
|
||||
}
|
||||
|
||||
async function fetchTagReleases({ _commit }, tagId) {
|
||||
|
||||
Reference in New Issue
Block a user