forked from AkkomaGang/akkoma-fe
fix custom nsfwCensorImage not working
This commit is contained in:
parent
c8caa477d7
commit
ac64e90898
3 changed files with 5 additions and 6 deletions
|
@ -24,10 +24,6 @@ const afterStoreSetup = ({ store, i18n }) => {
|
||||||
store.dispatch('setInstanceOption', { name: 'bannerlimit', value: parseInt(uploadlimit.bannerlimit) })
|
store.dispatch('setInstanceOption', { name: 'bannerlimit', value: parseInt(uploadlimit.bannerlimit) })
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.nsfwCensorImage) {
|
|
||||||
store.dispatch('setInstanceOption', { name: 'nsfwCensorImage', value: data.nsfwCensorImage })
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vapidPublicKey) {
|
if (vapidPublicKey) {
|
||||||
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
|
store.dispatch('setInstanceOption', { name: 'vapidPublicKey', value: vapidPublicKey })
|
||||||
}
|
}
|
||||||
|
@ -73,7 +69,9 @@ const afterStoreSetup = ({ store, i18n }) => {
|
||||||
var subjectLineBehavior = (config.subjectLineBehavior)
|
var subjectLineBehavior = (config.subjectLineBehavior)
|
||||||
var alwaysShowSubjectInput = (config.alwaysShowSubjectInput)
|
var alwaysShowSubjectInput = (config.alwaysShowSubjectInput)
|
||||||
var noAttachmentLinks = (config.noAttachmentLinks)
|
var noAttachmentLinks = (config.noAttachmentLinks)
|
||||||
|
var nsfwCensorImage = (config.nsfwCensorImage)
|
||||||
|
|
||||||
|
store.dispatch('setInstanceOption', { name: 'nsfwCensorImage', value: nsfwCensorImage })
|
||||||
store.dispatch('setInstanceOption', { name: 'theme', value: theme })
|
store.dispatch('setInstanceOption', { name: 'theme', value: theme })
|
||||||
store.dispatch('setInstanceOption', { name: 'background', value: background })
|
store.dispatch('setInstanceOption', { name: 'background', value: background })
|
||||||
store.dispatch('setInstanceOption', { name: 'hidePostStats', value: hidePostStats })
|
store.dispatch('setInstanceOption', { name: 'hidePostStats', value: hidePostStats })
|
||||||
|
|
|
@ -11,7 +11,7 @@ const Attachment = {
|
||||||
],
|
],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
nsfwImage: this.$store.state.config.nsfwCensorImage || nsfwImage,
|
nsfwImage: this.$store.state.instance.nsfwCensorImage || nsfwImage,
|
||||||
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
||||||
preloadImage: this.$store.state.config.preloadImage,
|
preloadImage: this.$store.state.config.preloadImage,
|
||||||
loopVideo: this.$store.state.config.loopVideo,
|
loopVideo: this.$store.state.config.loopVideo,
|
||||||
|
|
|
@ -18,5 +18,6 @@
|
||||||
"hideUserStats": false,
|
"hideUserStats": false,
|
||||||
"loginMethod": "password",
|
"loginMethod": "password",
|
||||||
"webPushNotifications": false,
|
"webPushNotifications": false,
|
||||||
"noAttachmentLinks": false
|
"noAttachmentLinks": false,
|
||||||
|
"nsfwCensorImage": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue