summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2016-05-19 07:35:08 -0700
committerAaron Parecki <aaron@parecki.com>2016-05-19 07:35:08 -0700
commita5d58b45b42e2d5a74ecf0008a63cb3d041fa963 (patch)
treec39bd4801ebb9c3202d7c2d43d19192869cc8988
parent0a74de5b7bf4f7f5867fb8ca8cd8f4671ec038a9 (diff)
use media-endpoint for consistency
-rw-r--r--lib/helpers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/helpers.php b/lib/helpers.php
index ba78e58..e938f36 100644
--- a/lib/helpers.php
+++ b/lib/helpers.php
@@ -239,8 +239,8 @@ function get_micropub_config(&$user, $query=[]) {
$user->syndication_targets = json_encode($targets);
$media_endpoint = false;
- if(array_key_exists('media_endpoint', $r['data'])) {
- $media_endpoint = $r['data']['media_endpoint'];
+ if(array_key_exists('media-endpoint', $r['data'])) {
+ $media_endpoint = $r['data']['media-endpoint'];
$user->micropub_media_endpoint = $media_endpoint;
}