]> git.mxchange.org Git - friendica.git/blobdiff - include/tags.php
Only import new OStatus posts if they are from our followers
[friendica.git] / include / tags.php
index a8bcae86dcc3783c13bbbc8ab6466517db431f1e..0a094384782bb4358af16ac28811182ade537a84 100644 (file)
@@ -1,13 +1,11 @@
 <?php
 function create_tags_from_item($itemid) {
-       global $a;
-
-       $profile_base = $a->get_baseurl();
+       $profile_base = App::get_baseurl();
        $profile_data = parse_url($profile_base);
        $profile_base_friendica = $profile_data['host'].$profile_data['path']."/profile/";
        $profile_base_diaspora = $profile_data['host'].$profile_data['path']."/u/";
 
-       $searchpath = $a->get_baseurl()."/search?tag=";
+       $searchpath = App::get_baseurl()."/search?tag=";
 
        $messages = q("SELECT `guid`, `uid`, `id`, `edited`, `deleted`, `created`, `received`, `title`, `body`, `tag`, `parent` FROM `item` WHERE `id` = %d LIMIT 1", intval($itemid));