aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2016-01-08 01:59:16 +0100
committerMikael Nordfeldth <mmn@hethane.se>2016-01-08 01:59:16 +0100
commit28cd5640c1b632f7fb503f93dde7114308b0d626 (patch)
tree16cf1db106183b4cedd421e9162d310b988626a7 /classes
parent0463d96392abd1976486c1ae53ece8466e930e29 (diff)
downloadgnu-social-28cd5640c1b632f7fb503f93dde7114308b0d626.tar
gnu-social-28cd5640c1b632f7fb503f93dde7114308b0d626.zip
Save attentions to Reply table for backwards compatibility
local users only of course
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 7a77d9859a..6781918be4 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -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) {