summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index 7dca36d..57e3374 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -298,6 +298,7 @@ function get_micropub_config(&$user, $query=[]) {
// Reset the values so they can be overwritten
$user->syndication_targets = '';
$user->supported_post_types = '';
+ $user->supported_visibility = '';
$user->micropub_media_endpoint = '';
if(count($targets))
@@ -316,6 +317,10 @@ function get_micropub_config(&$user, $query=[]) {
}
}
+ if(isset($r['data']['visibility']) && is_array($r['data']['visibility'])) {
+ $user->supported_visibility = json_encode($r['data']['visibility']);
+ }
+
$user->save();
return [