Kaynağa Gözat

fix making private posts

George S. Baugh 4 yıl önce
ebeveyn
işleme
ea69471a49
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      lib/Trog/DataModule.pm

+ 1 - 0
lib/Trog/DataModule.pm

@@ -294,6 +294,7 @@ sub _process ($post) {
 
     # Handle acls/tags
     $post->{tags} //= [];
+    $post->{acls} //= [];
     @{$post->{tags}} = grep { my $subj = $_; !grep { $_ eq $subj} qw{public private unlisted} } @{$post->{tags}};
     push(@{$post->{tags}}, @{$post->{acls}}) if $post->{visibility} eq 'private';
     delete $post->{acls};