]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ModPlus/ModPlusPlugin.php
Initial move towards microformats2
[quix0rs-gnu-social.git] / plugins / ModPlus / ModPlusPlugin.php
index 5ca2e7714221be769b0acae3a09641c8e8c03f16..8b32db7866b6c4884cfc864456d5eb98e55fb3df 100644 (file)
@@ -86,7 +86,7 @@ class ModPlusPlugin extends Plugin
      * @param NoticeListItem $item
      * @return boolean hook value
      */
-    function onStartShowNoticeItem($item)
+    function onStartShowNoticeItem(NoticeListItem $item)
     {
         $this->showProfileOptions($item->out, $item->profile);
         return true;
@@ -108,12 +108,11 @@ class ModPlusPlugin extends Plugin
      * Currently only adds output for remote profiles, nothing for local users.
      *
      * @param HTMLOutputter $out
-     * @param Profile $profile (may also be an ArrayWrapper... sigh)
+     * @param Profile $profile
      */
-    protected function showProfileOptions(HTMLOutputter $out, $profile)
+    protected function showProfileOptions(HTMLOutputter $out, Profile $profile)
     {
-        $isRemote = !(User::getKV('id', $profile->id));
-        if ($isRemote) {
+        if (!$profile->isLocal()) {
             $target = common_local_url('remoteprofile', array('id' => $profile->id));
             // TRANS: Label for access to remote profile options.
             $label = _m('Remote profile options...');