original_string: public function isAckAction()
      {
          $json = array();
          $postId = $this->params()->fromQuery('postid', null);
          $myReactions = $this->mattermost->getMyReactions($postId);
          $ok = array_filter($myReactions, function($v){
              return strcmp($v['emoji_name'], 'ok') == 0;
          });
          $json['ack'] = count($ok) == 1;
          return new JsonModel($json);
      }
code: public function isAckAction()
      {
          $json = array();
          $postId = $this->params()->fromQuery('postid', null);
          $myReactions = $this->mattermost->getMyReactions($postId);
          $ok = array_filter($myReactions, function($v){
              return strcmp($v['emoji_name'], 'ok') == 0;
          });
          $json['ack'] = count($ok) == 1;
          return new JsonModel($json);
      }
code_tokens: public function isAckAction ( ) { $ json = array ( ) ; $ postId = $ this -> params ( ) -> fromQuery ( 'postid' , null ) ; $ myReactions = $ this -> mattermost -> getMyReactions ( $ postId ) ; $ ok = array_filter ( $ myReactions , function ( $ v ) { return strcmp ( $ v [ 'emoji_name' ] , 'ok' ) == 0 ; } ) ; $ json [ 'ack' ] = count ( $ ok ) == 1 ; return new JsonModel ( $ json ) ; }
docstring: Test if the post has a "ok" reaction, signifying the post has already been aknowledged
  @return JsonModel
docstring_tokens: Test if the post has a ok reaction signifying the post has already been aknowledged