From 0a74de5b7bf4f7f5867fb8ca8cd8f4671ec038a9 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 15 May 2016 10:15:29 -0400 Subject: send proper content type headers --- lib/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/helpers.php') 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) { -- cgit v1.2.3