]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagger.php
Events: Now with guid.
[friendica.git] / mod / tagger.php
index 401f285125a5e84ebf7ca7317136f5a8cb961fa1..26166a3cc0458efb7885f3c8175521aaceb6bc72 100644 (file)
@@ -95,12 +95,13 @@ EOT;
        $bodyverb = t('%1$s tagged %2$s\'s %3$s with %4$s');
 
        if(! isset($bodyverb))
-                       return; 
+                       return;
 
        $termlink = html_entity_decode('⌗') . '[url=' . $a->get_baseurl() . '/search?tag=' . urlencode($term) . ']'. $term . '[/url]';
 
        $arr = array();
 
+       $arr['guid'] = get_guid(32);
        $arr['uri'] = $uri;
        $arr['uid'] = $owner_uid;
        $arr['contact-id'] = $contact['id'];
@@ -115,7 +116,7 @@ EOT;
        $arr['author-name'] = $contact['name'];
        $arr['author-link'] = $contact['url'];
        $arr['author-avatar'] = $contact['thumb'];
-       
+
        $ulink = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]';
        $alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
        $plink = '[url=' . $item['plink'] . ']' . $post_type . '[/url]';
@@ -138,10 +139,10 @@ EOT;
 
        $post_id = item_store($arr);
 
-       q("UPDATE `item` set plink = '%s' where id = %d",
-               dbesc($a->get_baseurl() . '/display/' . $owner_nick . '/' . $post_id),
-               intval($post_id)
-       );
+//     q("UPDATE `item` set plink = '%s' where id = %d",
+//             dbesc($a->get_baseurl() . '/display/' . $owner_nick . '/' . $post_id),
+//             intval($post_id)
+//     );
 
 
        if(! $item['visible']) {