public function canPost()
    {
        $viewer = get_viewer();

        $actor = $this->actor;

        if (!$actor) {
            return false;
        }

        if ($viewer->eql($actor)) {
            return false;
        }

        if (!$actor->isFollowable()) {
            return false;
        }

        if (!$actor->isSubscribable()) {
            return false;
        }

        return $viewer->following($actor);
    }
public function canPost()
    {
        $viewer = get_viewer();

        $actor = $this->actor;

        if (!$actor) {
            return false;
        }

        if ($viewer->eql($actor)) {
            return false;
        }

        if (!$actor->isFollowable()) {
            return false;
        }

        if (!$actor->isSubscribable()) {
            return false;
        }

        return $viewer->following($actor);
    }
public function canPost ( ) { $ viewer = get_viewer ( ) ; $ actor = $ this -> actor ; if ( ! $ actor ) { return false ; } if ( $ viewer -> eql ( $ actor ) ) { return false ; } if ( ! $ actor -> isFollowable ( ) ) { return false ; } if ( ! $ actor -> isSubscribable ( ) ) { return false ; } return $ viewer -> following ( $ actor ) ; }
Authorizes a post, only if the viewer is already following the owner.

@return bool
Authorizes a post only if the viewer is already following the owner .