Skip to content

Commit 371d707

Browse files
author
Tom Coward
committed
Moved approval code to separate function
1 parent cfd6e30 commit 371d707

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

XFRM/Service/ResourceUpdate/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
$update = $this->update;
1212

13+
$this->approveDiscussionThreadPost($update);
14+
}
15+
16+
protected function approveDiscussionThreadPost($update)
17+
{
1318
// TODO: find more solid way of finding the update's post in discussion thread
1419
$post = \XF::finder('XF:Post')->where([
1520
'thread_id' => $update->Resource->discussion_thread_id,

0 commit comments

Comments
 (0)