diff options
author | Friendika <info@friendika.com> | 2011-04-26 19:01:10 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-26 19:01:10 -0700 |
commit | 8fbdb61ee2a34232f263fe3d418b933e8a19531e (patch) | |
tree | 67d119dc875a3bb3e7e599147e602e9652ca2dc2 /addon/facebook/facebook.php | |
parent | a5d478233c51bc5adc42f8193acd65d1790ef1e5 (diff) | |
download | volse-hubzilla-8fbdb61ee2a34232f263fe3d418b933e8a19531e.tar.gz volse-hubzilla-8fbdb61ee2a34232f263fe3d418b933e8a19531e.tar.bz2 volse-hubzilla-8fbdb61ee2a34232f263fe3d418b933e8a19531e.zip |
generate permalink to source article
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r-- | addon/facebook/facebook.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 6fdce1485..5f21ab348 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -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]'; |