Fix for delete guest post
This commit is contained in:
parent
1000a97430
commit
4a0a13f31a
1 changed files with 7 additions and 4 deletions
|
@ -78,10 +78,13 @@ class Delete extends Action
|
|||
throw new RuntimeException('Parents unavailable');
|
||||
}
|
||||
|
||||
$pids[$arg->id] = $arg->id;
|
||||
$parents[$arg->topic_id] = $arg->parent;
|
||||
$uidsUpdate[$arg->poster_id] = $arg->poster_id;
|
||||
$isPost = 1;
|
||||
$pids[$arg->id] = $arg->id;
|
||||
$parents[$arg->topic_id] = $arg->parent;
|
||||
$isPost = 1;
|
||||
|
||||
if ($arg->poster_id > 0) {
|
||||
$uidsUpdate[$arg->poster_id] = $arg->poster_id;
|
||||
}
|
||||
} else {
|
||||
throw new InvalidArgumentException('Expected User(s), Forum(s), Topic(s) or Post(s)');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue