- $profile = Profile::staticGet('id', $this->subscriber);
- if (!$profile) {
- common_log(LOG_ERROR, "SubMirror plugin skipping auto-repeat of notice $notice->id for missing user $profile->id");
+ $profile = Profile::getKV('id', $this->subscriber);
+ if (!($profile instanceof Profile)) {
+ common_log(LOG_ERR, "SubMirror plugin skipping auto-repeat of notice $notice->id for missing user $profile->id");