summaryrefslogtreecommitdiff
path: root/lib/helpers.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-05-15 10:15:29 -0400
committerAaron Parecki <aaron@parecki.com>2016-05-15 10:15:29 -0400
commit0a74de5b7bf4f7f5867fb8ca8cd8f4671ec038a9 (patch)
treeaa656bf460908c05954ff297b5574aab4336e5d2 /lib/helpers.php
parent542aa812f8606dad16ab456c3e5da438cc501644 (diff)
send proper content type headers
Diffstat (limited to 'lib/helpers.php')
-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) {