mirror of
https://github.com/friendica/friendica
synced 2025-05-11 05:04:10 +02:00
Replace *_page_info function calls with Content\PageInfo equivalent
This commit is contained in:
parent
a1d62734fa
commit
3e25fc3a72
7 changed files with 17 additions and 56 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Protocol;
|
||||
|
||||
use Friendica\Content\Feature;
|
||||
use Friendica\Content\PageInfo;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\Markdown;
|
||||
use Friendica\Core\Cache\Duration;
|
||||
|
@ -2621,7 +2622,7 @@ class Diaspora
|
|||
$item["body"] = self::replacePeopleGuid($item["body"], $item["author-link"]);
|
||||
|
||||
// Add OEmbed and other information to the body
|
||||
$item["body"] = add_page_info_to_body($item["body"], false, true);
|
||||
$item["body"] = PageInfo::appendToBody($item["body"], false, true);
|
||||
|
||||
return $item;
|
||||
} else {
|
||||
|
@ -2985,7 +2986,7 @@ class Diaspora
|
|||
|
||||
// Add OEmbed and other information to the body
|
||||
if (!self::isHubzilla($contact["url"])) {
|
||||
$body = add_page_info_to_body($body, false, true);
|
||||
$body = PageInfo::appendToBody($body, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue