1
0
Fork 0

Replace *_page_info function calls with Content\PageInfo equivalent

This commit is contained in:
Hypolite Petovan 2020-07-14 10:15:04 -04:00
commit 3e25fc3a72
7 changed files with 17 additions and 56 deletions

View file

@ -30,6 +30,7 @@
use Friendica\App;
use Friendica\Content\Item as ItemHelper;
use Friendica\Content\PageInfo;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
@ -233,7 +234,7 @@ function item_post(App $a) {
];
}
$att_bbcode = add_page_info_data($attachment);
$att_bbcode = "\n" . PageInfo::getFooterFromData($attachment);
$body .= $att_bbcode;
}

View file

@ -24,6 +24,7 @@
*/
use Friendica\App;
use Friendica\Content\PageInfo;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\System;
@ -177,7 +178,7 @@ function parse_url_content(App $a)
}
// Format it as BBCode attachment
$info = add_page_info_data($siteinfo);
$info = "\n" . PageInfo::getFooterFromData($siteinfo);
echo $info;