]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Store direct messages as an activity
[quix0rs-gnu-social.git] / classes / Notice.php
index abec8b7af4e719f305156a7f7afce4c79ed4d0c0..9a4b6db7fffadf8d5b62ee573f5b32bc003e99aa 100644 (file)
@@ -1614,6 +1614,12 @@ class Notice extends Managed_DataObject
 
             $act->context = $ctx;
 
+            $source = $this->getSource();
+
+            if ($source) {
+                $act->generator = ActivityObject::fromNoticeSource($source);
+            }
+
             // Source
 
             $atom_feed = $profile->getAtomFeed();