{
return { label: locale.name, value: locale.code }
@@ -119,21 +112,10 @@ export default {
imageAspectRatio,
imageBlurred,
language: languageOptions.find((option) => option.value === language) || null,
- categoryIds: categories ? categories.map((category) => category.id) : [],
},
formSchema: {
title: { required: true, min: 3, max: 100 },
content: { required: true },
- categoryIds: {
- type: 'array',
- required: true,
- validator: (_, value = []) => {
- if (value.length === 0 || value.length > 3) {
- return [new Error(this.$t('common.validations.categories'))]
- }
- return []
- },
- },
language: { required: true },
imageBlurred: { required: false },
},
@@ -155,7 +137,7 @@ export default {
methods: {
submit() {
let image = null
- const { title, content, categoryIds } = this.formData
+ const { title, content } = this.formData
if (this.formData.image) {
image = {
sensitive: this.formData.imageBlurred,
@@ -172,7 +154,6 @@ export default {
variables: {
title,
content,
- categoryIds,
id: this.contribution.id || null,
language: this.formData.language.value,
image,
diff --git a/webapp/pages/post/_id/_slug/index.vue b/webapp/pages/post/_id/_slug/index.vue
index c0388da87..a2147db41 100644
--- a/webapp/pages/post/_id/_slug/index.vue
+++ b/webapp/pages/post/_id/_slug/index.vue
@@ -46,21 +46,6 @@
-
-
-
-
-
-
-
- {{ post.language.toUpperCase() }}
-
-
@@ -110,7 +95,6 @@