3 final class PholioInlineListController
extends PholioController
{
5 public function handleRequest(AphrontRequest
$request) {
6 $viewer = $request->getViewer();
7 $id = $request->getURIData('id');
9 $image = id(new PholioImageQuery())
14 return new Aphront404Response();
17 $inline_comments = id(new PholioTransactionComment())->loadAllWhere(
18 'imageid = %d AND (transactionphid IS NOT NULL
19 OR (authorphid = %s AND transactionphid IS NULL))',
23 $author_phids = mpull($inline_comments, 'getAuthorPHID');
24 $authors = $this->loadViewerHandles($author_phids);
27 foreach ($inline_comments as $inline_comment) {
28 $inlines[] = $inline_comment->toDictionary();
31 return id(new AphrontAjaxResponse())->setContent($inlines);