Skip to content

Commit 8e88bd3

Browse files
author
Tom Coward
committed
Moved thread approval code to separate function
1 parent e12d26e commit 8e88bd3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

XFRM/Service/ResourceItem/Approve.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ protected function onApprove()
1010

1111
$resource = $this->resource;
1212

13+
$this->approveDiscussionThread($resource);
14+
}
15+
16+
protected function approveDiscussionThread($resource)
17+
{
1318
// Approve resource's associated thread if unapproved
1419
if($resource->Discussion->discussion_state == 'moderated'){
1520
/** @var \XF\Service\Thread\Approver $threadApprover */

0 commit comments

Comments
 (0)