Update function calls

update to new function calls
This commit is contained in:
Adam Magness 2018-01-26 19:14:47 -05:00
parent 792f069c6e
commit 21881f2885
5 changed files with 21 additions and 19 deletions

View file

@ -5,6 +5,7 @@
namespace Friendica\Protocol;
use Friendica\App;
use Friendica\Content\Text\Plaintext;
use Friendica\Core\Cache;
use Friendica\Core\Config;
use Friendica\Core\L10n;
@ -1205,7 +1206,7 @@ class OStatus
*/
private static function formatPicturePost($body)
{
$siteinfo = get_attached_data($body);
$siteinfo = Plaintext::getAttachedData($body);
if (($siteinfo["type"] == "photo")) {
if (isset($siteinfo["preview"])) {
@ -1327,7 +1328,7 @@ class OStatus
private static function getAttachment($doc, $root, $item)
{
$o = "";
$siteinfo = get_attached_data($item["body"]);
$siteinfo = Plaintext::getAttachedData($item["body"]);
switch ($siteinfo["type"]) {
case 'photo':