Skip to content

Commit

Permalink
fix: Unable to publish on audience All - EXO-75814 - Meeds-io/MIPs#161 (
Browse files Browse the repository at this point in the history
#339)

Prior to this change, when publish an article on audience value a legacy
check and value parsing causes an issue in the saved value to be always
users.
This PR ensures to set the right value sent from the new publication
drawer while saving the article to fix the issue.
  • Loading branch information
hakermi authored Dec 10, 2024
1 parent ae6a701 commit 180b0f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export default {
this.article.published = publish;
this.article.targets = selectedTargets;
if (selectedAudience !== null) {
this.article.audience = selectedAudience === this.$t('news.composer.stepper.audienceSection.allUsers') ? 'all' : 'space';
this.article.audience = selectedAudience;
}
this.doPostArticle(schedulePostDate);
},
Expand Down

0 comments on commit 180b0f7

Please sign in to comment.