+ // We have to manually add attentions to non-profile subs and non-mentions
+ $ptAtts = $notice->getAttentionsFromProfileTags();
+ foreach (array_keys($ptAtts) as $profile_id) {
+ $profile = Profile::getKV('id', $profile_id);
+ if ($profile instanceof Profile) {
+ try {
+ common_debug('Adding Attention for '.$notice->getID().' profile '.$profile->getID());
+ Attention::saveNew($notice, $profile);
+ } catch (Exception $e) {
+ $this->logit($notice, $e);
+ }
+ }
+ }
+
+ try {
+ $notice->sendReplyNotifications();
+ } catch (Exception $e) {
+ $this->logit($notice, $e);
+ }