Browse Source

use q=config for micropub config query

pull/10/head
Aaron Parecki 4 years ago
parent
commit
04540818d5
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/helpers.php

+ 1
- 1
lib/helpers.php View File

@ -184,7 +184,7 @@ function micropub_get($endpoint, $params, $access_token) {
function get_micropub_config(&$user) {
$targets = array();
$r = micropub_get($user->micropub_endpoint, [], $user->access_token);
$r = micropub_get($user->micropub_endpoint, ['q'=>'config'], $user->access_token);
if($r['data'] && is_array($r['data']) && array_key_exists('media-endpoint', $r['data'])) {
$user->micropub_media_endpoint = $r['data']['media-endpoint'];

Loading…
Cancel
Save