mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-23 04:10:16 +00:00
Fix errors in ljpost addon
This commit is contained in:
parent
e86d15993b
commit
5f6f374f09
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,6 @@
|
||||||
* Author: Cat Gray <https://free-haven.org/profile/catness>
|
* Author: Cat Gray <https://free-haven.org/profile/catness>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\App;
|
|
||||||
use Friendica\Content\Text\BBCode;
|
use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
|
@ -203,10 +202,12 @@ EOT;
|
||||||
|
|
||||||
Logger::debug('ljpost: data: ' . $xml);
|
Logger::debug('ljpost: data: ' . $xml);
|
||||||
|
|
||||||
|
$x = '';
|
||||||
|
|
||||||
if ($lj_blog !== 'test') {
|
if ($lj_blog !== 'test') {
|
||||||
$x = DI::httpClient()->post($lj_blog, $xml, ['Content-Type' => 'text/xml'])->getBodyString();
|
$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