Return config with TagPolicy

This commit is contained in:
Angelina Filippova 2020-08-28 19:31:35 +03:00
parent 9eb5a1b347
commit bf5f6beb75

View file

@ -1,9 +1,9 @@
const configsWithoutTagPolicy = {
const configsWithTagPolicy = {
configs: [{
group: ':pleroma',
key: ':mrf',
value: [
{ tuple: [':policies', 'Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy'] },
{ tuple: [':policies', ['Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy', 'Pleroma.Web.ActivityPub.MRF.TagPolicy']] },
{ tuple: [':transparency', true] },
{ tuple: [':transparency_exclusions', []] }
] }],
@ -21,7 +21,7 @@ const configAfterUpdate = {
}
export async function fetchSettings(authHost, token) {
return Promise.resolve({ data: configsWithoutTagPolicy })
return Promise.resolve({ data: configsWithTagPolicy })
}
export async function updateSettings(configs, authHost, token) {