X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FSubMirror%2Fclasses%2FSubMirror.php;h=cdbbed6726e415c2ddcbd24d18cbef7ba7a36fe6;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=0920856192f1487f1516b94d700b19c1e0f2793d;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/plugins/SubMirror/classes/SubMirror.php b/plugins/SubMirror/classes/SubMirror.php index 0920856192..cdbbed6726 100644 --- a/plugins/SubMirror/classes/SubMirror.php +++ b/plugins/SubMirror/classes/SubMirror.php @@ -179,7 +179,7 @@ class SubMirror extends Managed_DataObject return true; } else { common_log(LOG_INFO, "SubMirror plugin auto-repeating notice $notice->id for $profile->id"); - return $notice->repeat($profile->id, 'mirror'); + return $notice->repeat($profile, 'mirror'); } } @@ -188,13 +188,14 @@ class SubMirror extends Managed_DataObject * Kind of dirty, but if pulling an external data feed into an account * that may be what you want. * - * @param Notice $notice - * @return mixed Notice on successful repeat, true if already repeated, false on failure + * @param Profile $profile + * @param Notice $notice + * @return mixed Notice on successful repeat, true if already repeated, false on failure */ - protected function copyNotice($profile, $notice) + protected function copyNotice(Profile $profile, Notice $notice) { $options = array('is_local' => Notice::LOCAL_PUBLIC, - 'url' => $notice->bestUrl(), // pass through the foreign link... + 'url' => $notice->getUrl(), // pass through the foreign link... 'rendered' => $notice->rendered); $saved = Notice::saveNew($profile->id,