diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 99da1da2..8c99ab8e 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -22,7 +22,7 @@ - if current_user.is_a? Usuaria .form-group = label_tag 'post_author', t('posts.author') - - todxs = (@site.usuarias + @site.invitadxs).map(&:username) + - todxs = (@site.usuarias + @site.invitadxs).compact.uniq.map(&:username) = select_tag 'post[author]', options_for_select(todxs, @post.author || current_user.email), { class: 'form-control select2',