app/src/main/java/org/andstatus/app/service/CommandExecutorOther.java
/**
     * @param follow true - Follow, false - Stop following
     */
@param follow true - Follow, false - Stop following
@param follow true - Follow false - Stop following
private Try<Boolean> followOrStopFollowingActor(Actor actor, boolean follow) {
        final String method = (follow ? "follow" : "stopFollowing") + "Actor";
        return getConnection()
        .follow(actor.oid, follow)
        .flatMap(activity -> {
            final Actor friend = activity.getObjActor();
            friend.isMyFriend = TriState.UNKNOWN; 
            return failIfActorIsEmpty(method, friend)
                .map(a -> {
                    new DataUpdater(execContext).onActivity(activity);
                    return true;
                });
        });
    }
private Try < Boolean > followOrStopFollowingActor ( Actor actor , boolean follow ) { final String method = ( follow ? "follow" : "stopFollowing" ) + "Actor" ; return getConnection ( ) . follow ( actor . oid , follow ) . flatMap ( activity -> { final Actor friend = activity . getObjActor ( ) ; friend . isMyFriend = TriState . UNKNOWN ; return failIfActorIsEmpty ( method , friend ) . map ( a -> { new DataUpdater ( execContext ) . onActivity ( activity ) ; return true ; } ) ; } ) ; }
@param follow true - Follow, false - Stop following
@param follow true - Follow false - Stop following
// That "hack" attribute may only confuse us here as it can show outdated info