Update function calls
update to new function calls
This commit is contained in:
parent
792f069c6e
commit
21881f2885
5 changed files with 21 additions and 19 deletions
|
@ -15,6 +15,7 @@
|
|||
* information.
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -506,7 +507,7 @@ function item_post(App $a) {
|
|||
// embedded bookmark or attachment in post? set bookmark flag
|
||||
|
||||
$bookmark = 0;
|
||||
$data = get_attachment_data($body);
|
||||
$data = Plaintext::getAttachmentData($body);
|
||||
if (preg_match_all("/\[bookmark\=([^\]]*)\](.*?)\[\/bookmark\]/ism", $body, $match, PREG_SET_ORDER) || isset($data["type"])) {
|
||||
$objecttype = ACTIVITY_OBJ_BOOKMARK;
|
||||
$bookmark = 1;
|
||||
|
@ -524,7 +525,7 @@ function item_post(App $a) {
|
|||
if (!$objecttype) {
|
||||
$objecttype = ACTIVITY_OBJ_NOTE; // Default value
|
||||
require_once 'include/plaintext.php';
|
||||
$objectdata = get_attached_data($body);
|
||||
$objectdata = Plaintext::getAttachedData($body);
|
||||
|
||||
if ($objectdata["type"] == "link") {
|
||||
$objecttype = ACTIVITY_OBJ_BOOKMARK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue