make nsfw censor image configurable
This commit is contained in:
parent
b6eb1b1d98
commit
f4ee222e3c
|
@ -11,7 +11,7 @@ const Attachment = {
|
||||||
],
|
],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
nsfwImage,
|
nsfwImage: this.$store.state.config.nsfwCensorImage || nsfwImage,
|
||||||
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
||||||
showHidden: false,
|
showHidden: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
|
@ -96,6 +96,9 @@ window.fetch('/static/config.json')
|
||||||
if (data['chatDisabled']) {
|
if (data['chatDisabled']) {
|
||||||
store.dispatch('disableChat')
|
store.dispatch('disableChat')
|
||||||
}
|
}
|
||||||
|
if (data['nsfwCensorImage']) {
|
||||||
|
store.dispatch('setOption', { name: 'nsfwCensorImage', value: data['nsfwCensorImage'] })
|
||||||
|
}
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{ name: 'root', path: '/', redirect: data['defaultPath'] || '/main/all' },
|
{ name: 'root', path: '/', redirect: data['defaultPath'] || '/main/all' },
|
||||||
|
|
Loading…
Reference in New Issue