]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add 'twitter:title' meta tag support.
authorJean Baptiste Favre <statusnet@jbfavre.org>
Tue, 18 Sep 2012 14:20:10 +0000 (16:20 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 10 Sep 2013 09:16:34 +0000 (11:16 +0200)
actions/attachment.php

index f805aa1fc30bb47a397c7171d7a3c34b862c372d..090ad56f7a09792d89cfffab61251674c5ae213d 100644 (file)
@@ -136,6 +136,8 @@ class AttachmentAction extends Action
                                        null );
                 $this->element('meta', array('name'    => 'twitter:image',
                                              'content' => $this->attachment->url));
+                $this->element('meta', array('name'    => 'twitter:title',
+                                             'content' => $this->attachment->title));
 
                 $ns = new AttachmentNoticeSection($this);
                 $notices = $ns->getNotices();