diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-30 18:24:19 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-30 18:24:19 -0700 |
commit | 120a117f41e272644eea6c6f0600a720e86fcd14 (patch) | |
tree | 3d4130058fa00d2f4cbee640ecb225e659a76ab8 | |
parent | 46167d6b3567d49f052a372fc97e43eefbd064d7 (diff) | |
parent | 8b8450f9ad96c1ca267e5362457b0200429bf42b (diff) |
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
-rw-r--r-- | actions/shownotice.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php index c8e9cfe66..005335e3b 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -298,6 +298,16 @@ class ShownoticeAction extends OwnerDesignAction array(), array('format'=>'xml','url'=>$this->notice->uri)), 'title'=>'oEmbed'),null); + + // Extras to aid in sharing notices to Facebook + $avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE); + $avatarUrl = ($avatar) ? + $avatar->displayUrl() : + Avatar::defaultImage($avatar_size); + $this->element('meta', array('property' => 'og:image', + 'content' => $avatarUrl)); + $this->element('meta', array('property' => 'og:description', + 'content' => $this->notice->content)); } } |