]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/OStatus.php
move forgotten rotator from template
[friendica.git] / src / Protocol / OStatus.php
index 2a160724b4d0ea16cdbd55de357c6c4860875371..abaa298ebcf3fc5f78016df7df2c1713dddc7eff 100644 (file)
@@ -496,7 +496,7 @@ class OStatus
                                $orig_uri = $xpath->query('activity:object/atom:id', $entry)->item(0)->nodeValue;
                                Logger::notice('Favorite', ['uri' => $orig_uri, 'item' => $item]);
 
-                               $item['verb'] = Activity::LIKE;
+                               $item['body'] = $item['verb'] = Activity::LIKE;
                                $item['thr-parent'] = $orig_uri;
                                $item['gravity'] = Item::GRAVITY_ACTIVITY;
                                $item['object-type'] = Activity\ObjectType::NOTE;
@@ -1395,8 +1395,8 @@ class OStatus
                }
 
                $item['uri'] = $item['parent-uri'] = $item['thr-parent']
-                               = 'tag:' . DI::baseUrl()->getHostname().
-                               ','.date('Y-m-d').':'.$action.':'.$owner['uid'].
+                               = 'tag:' . DI::baseUrl()->getHost() .
+                                 ','.date('Y-m-d').':'.$action.':'.$owner['uid'].
                                ':person:'.$connect_id.':'.$item['created'];
 
                $item['body'] = sprintf($message, $owner['nick'], $contact['nick']);
@@ -1515,6 +1515,7 @@ class OStatus
                XML::addElement($doc, $entry, 'title', html_entity_decode($title, ENT_QUOTES, 'UTF-8'));
 
                $body = Post\Media::addAttachmentsToBody($item['uri-id'], DI::contentItem()->addSharedPost($item));
+               $body = Post\Media::addHTMLLinkToBody($item['uri-id'], $body);
 
                if (!empty($item['title'])) {
                        $body = '[b]' . $item['title'] . "[/b]\n\n" . $body;