]> git.mxchange.org Git - friendica.git/commitdiff
generate permalink to source article
authorFriendika <info@friendika.com>
Wed, 27 Apr 2011 02:01:10 +0000 (19:01 -0700)
committerFriendika <info@friendika.com>
Wed, 27 Apr 2011 02:01:10 +0000 (19:01 -0700)
addon/facebook/facebook.php

index 6fdce1485f157ef7fb8095985f4dbf971e2f6770..5f21ab348beb5adabe000b43e6d7d9996c9674ff 100644 (file)
@@ -589,6 +589,8 @@ function fb_consume_stream($uid,$j,$wall = false) {
                        $datarray['author-name'] = $from->name;
                        $datarray['author-link'] = 'http://facebook.com/profile.php?id=' . $from->id;
                        $datarray['author-avatar'] = 'https://graph.facebook.com/' . $from->id . '/picture';
+                       $datarray['plink'] = $datarray['author-link'] . '&v=wall&story_fbid=' . substr($entry->id,strpos($entry->id,'_') + 1);
+
                        $datarray['body'] = $entry->message;
                        if($entry->picture)
                                $datarray['body'] .= "\n\n" . '[img]' . $entry->picture . '[/img]';