Пример #1
0
 function webmentionContent($source, $target, $source_content, $source_mf2)
 {
     if (!empty($this->arguments[0])) {
         $object = \Idno\Common\Entity::getByShortURL($this->arguments[0]);
     }
     if (empty($object)) {
         return false;
     }
     $return = true;
     if ($object instanceof \Idno\Common\Entity) {
         $return = $object->addWebmentions($source, $target, $source_content, $source_mf2);
     }
     return $return;
 }