require_once 'include/enotify.php';
use Friendica\App;
+use Friendica\Content\OEmbed;
use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Model\GContact;
$tempfile = "";
require_once "include/plaintext.php";
require_once "include/network.php";
- $msgarr = plaintext($a, $b, $max_char, true, 7);
+ $msgarr = plaintext($b, $max_char, true, 7);
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"]))
}
}
- $msgarr = plaintext($a, $item, $max_char, true, 7);
+ $msgarr = plaintext($item, $max_char, true, 7);
$msg = $msgarr["text"];
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
$contact_id = $r[0]['id'];
- require_once 'include/group.php';
Group::addMember(User::getDefaultGroup($uid), $contact_id);
$photos = Photo::importProfilePhoto($contact->profile_image_url, $uid, $contact_id);
function statusnet_convertmsg(App $a, $body, $no_tags = false)
{
- require_once "include/oembed.php";
require_once "include/items.php";
require_once "include/network.php";
logger("statusnet_convertmsg: fetching data for " . $expanded_url, LOGGER_DEBUG);
- $oembed_data = oembed_fetch_url($expanded_url, true);
+ $oembed_data = OEmbed::fetchURL($expanded_url, true);
logger("statusnet_convertmsg: fetching data: done", LOGGER_DEBUG);