Browse Source

use media-endpoint for consistency

pull/52/head
Aaron Parecki 8 years ago
parent
commit
a5d58b45b4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/helpers.php

+ 2
- 2
lib/helpers.php View File

@ -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;
}

Loading…
Cancel
Save