]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Haha, forgot that the $content content must also be there!
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 27 Jan 2016 22:04:19 +0000 (23:04 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 27 Jan 2016 22:04:19 +0000 (23:04 +0100)
actions/newnotice.php

index 16ca3bb999c997fe425025c3aee380d5d77aed39..298361d6003a614a2be287ffbdd9c2bc66fe3672 100644 (file)
@@ -104,7 +104,7 @@ class NewnoticeAction extends FormAction
             // throws exception on failure
             $upload = MediaFile::fromUpload('attach', $this->scoped);
             if (Event::handle('StartSaveNewNoticeAppendAttachment', array($this, $upload, &$content, &$options))) {
-                $content = ($content==='' ? '' : ' ') . $upload->shortUrl();
+                $content .= ($content==='' ? '' : ' ') . $upload->shortUrl();
             }
             Event::handle('EndSaveNewNoticeAppendAttachment', array($this, $upload, &$content, &$options));