]> git.mxchange.org Git - friendica.git/blobdiff - include/like.php
Merge pull request #3784 from annando/receive-migration
[friendica.git] / include / like.php
index 4f26002719dcb1fabd5f143dddfce320d7ee3d3b..bce1c776f3f1c3faa26eb25a66fdf87d5d0ff7f5 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\System;
 
 require_once("include/diaspora.php");
 
@@ -183,7 +184,7 @@ function do_like($item_id, $verb) {
                $post_type = t('event');
        }
        $objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
-       $link = xmlify('<link rel="alternate" type="text/html" href="' . App::get_baseurl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . '" />' . "\n") ;
+       $link = xmlify('<link rel="alternate" type="text/html" href="' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . '" />' . "\n") ;
        $body = $item['body'];
 
        $obj = <<< EOT
@@ -200,7 +201,7 @@ EOT;
 
        $ulink = '[url=' . $author_contact['url'] . ']' . $author_contact['name'] . '[/url]';
        $alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
-       $plink = '[url=' . App::get_baseurl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
+       $plink = '[url=' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
 
        $new_item = array(
                'guid'          => get_guid(32),