Add a self-only ACL block to personal notes jot
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Sep 2020 23:27:51 +0000 (19:27 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 7 Sep 2020 23:27:51 +0000 (19:27 -0400)
mod/notes.php

index f1cf6cf..d3ce0fa 100644 (file)
@@ -55,7 +55,7 @@ function notes_content(App $a, $update = false)
                        'default_location' => $a->user['default-location'],
                        'nickname' => $a->user['nickname'],
                        'lockstate' => 'lock',
-                       'acl' => '',
+                       'acl' => \Friendica\Core\ACL::getSelfOnlyHTML(local_user(), DI::l10n()->t('Personal notes are visible only by yourself.')),
                        'bang' => '',
                        'visitor' => 'block',
                        'profile_uid' => local_user(),