]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Save attentions to Reply table for backwards compatibility
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 8 Jan 2016 00:59:16 +0000 (01:59 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 8 Jan 2016 00:59:16 +0000 (01:59 +0100)
local users only of course

classes/Notice.php

index 7a77d9859af3653d16f0e4f75e7f418e5c9720f3..6781918be4ae410e2b654466673ff0bbee31f859 100644 (file)
@@ -1596,6 +1596,11 @@ class Notice extends Managed_DataObject
             }
         }
 
+        if ($target->isLocal()) {
+            // is local user
+            $this->saveReply($target->getID());   // since we still have the Reply table which some apparently use!
+        }
+
         try {
             $att = Attention::saveNew($this, $target, $reason);
         } catch (AlreadyFulfilledException $e) {