]> git.mxchange.org Git - friendica.git/commitdiff
Use the GUID to refer to items (preparation for future changes)
authorMichael Vogel <icarus@dabo.de>
Tue, 15 Jul 2014 06:47:36 +0000 (08:47 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 15 Jul 2014 06:47:36 +0000 (08:47 +0200)
include/text.php

index 4d6aa8697ae650e57499d8dc5f24b6523084dc30..3c08fe3785815e0ecc21c60787166f7dc0a562df 100644 (file)
@@ -1629,10 +1629,11 @@ function get_plink($item) {
 
        if ($a->user['nickname'] != "") {
                $ret = array(
-                               'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
+                               //'href' => $a->get_baseurl()."/display/".$a->user['nickname']."/".$item['id'],
+                               'href' => $a->get_baseurl()."/display/".$item['guid'],
+                               'orig' => $a->get_baseurl()."/display/".$item['guid'],
                                'title' => t('link to source'),
                        );
-               $ret["orig"] = $ret["href"];
 
                if (x($item,'plink'))
                        $ret["href"] = $item['plink'];