]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Linkback to mentioned profiles
authorStephen Paul Weber <singpolyma@singpolyma.net>
Sun, 25 Oct 2015 17:22:15 +0000 (17:22 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Sun, 25 Oct 2015 17:22:15 +0000 (17:22 +0000)
plugins/Linkback/LinkbackPlugin.php

index 4af67baba496cc7772e891e01adc2c088e6189af..e3519dac9ee9c7eada8e30654a07bbeee9b3faa5 100644 (file)
@@ -81,6 +81,11 @@ class LinkbackPlugin extends Plugin
                 $parent = $notice->getParent();
                 $this->linkbackUrl($parent->getUrl());
             }
+
+            $replyProfiles = Profile::multiGet('id', $notice->getReplies());
+            foreach($replyProfiles->fetchAll('profileurl') as $profileurl) {
+                $this->linkbackUrl($profileurl);
+            }
         }
         return true;
     }