Browse Source

Merge pull request #3719 from annando/bugfix-api

Bugfix: The API picture upload created an invalid link
tags/3.5.3
Tobias Diekershoff 3 years ago
committed by GitHub
parent
commit
dd45dcbef3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/api.php

+ 1
- 1
include/api.php View File

@@ -3988,7 +3988,7 @@ $called_api = null;
);

// adds link to the thumbnail scale photo
$arr['body'] = '[url=' . System::baseUrl() . '/photos/' . $owner_record[0]['name'] . '/image/' . $hash . ']'
$arr['body'] = '[url=' . System::baseUrl() . '/photos/' . $owner_record[0]['nick'] . '/image/' . $hash . ']'
. '[img]' . System::baseUrl() . '/photo/' . $hash . '-' . "2" . '.'. $typetoext[$filetype] . '[/img]'
. '[/url]';



Loading…
Cancel
Save