forked from friendica/friendica-addons
Fix errors in ljpost addon
This commit is contained in:
parent
d08a280ba6
commit
984e7c5e5d
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
|||
* Author: Cat Gray <https://free-haven.org/profile/catness>
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
|
@ -203,10 +202,12 @@ EOT;
|
|||
|
||||
Logger::debug('ljpost: data: ' . $xml);
|
||||
|
||||
$x = '';
|
||||
|
||||
if ($lj_blog !== 'test') {
|
||||
$x = DI::httpClient()->post($lj_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
|
||||
}
|
||||
|
||||
Logger::info('posted to livejournal: ' . ($x) ? $x : '');
|
||||
Logger::info('posted to livejournal: ' . $x);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue