summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/helpers.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index 76f209e..ba78e58 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -240,7 +240,8 @@ function get_micropub_config(&$user, $query=[]) {
$media_endpoint = false;
if(array_key_exists('media_endpoint', $r['data'])) {
- $user->micropub_media_endpoint = $r['data']['media_endpoint'];
+ $media_endpoint = $r['data']['media_endpoint'];
+ $user->micropub_media_endpoint = $media_endpoint;
}
if(count($targets) || $media_endpoint) {