We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd6e30 commit 371d707Copy full SHA for 371d707
1 file changed
XFRM/Service/ResourceUpdate/Approve.php
@@ -10,6 +10,11 @@ protected function onApprove()
10
11
$update = $this->update;
12
13
+ $this->approveDiscussionThreadPost($update);
14
+ }
15
+
16
+ protected function approveDiscussionThreadPost($update)
17
+ {
18
// TODO: find more solid way of finding the update's post in discussion thread
19
$post = \XF::finder('XF:Post')->where([
20
'thread_id' => $update->Resource->discussion_thread_id,
0 commit comments