Fix merge posts
The first post that containing a poll cannot be combined with a new post.
This commit is contained in:
parent
2b4cdd78dc
commit
eaee8bff13
1 changed files with 4 additions and 0 deletions
|
@ -189,6 +189,10 @@ class Post extends Page
|
|||
if (
|
||||
! $this->user->isGuest
|
||||
&& $topic->last_poster_id === $this->user->id
|
||||
&& (
|
||||
$topic->first_post_id !== $topic->last_post_id
|
||||
|| 0 === $topic->poll_type
|
||||
)
|
||||
) {
|
||||
if ($executive) {
|
||||
if ($v->merge_post) {
|
||||
|
|
Loading…
Add table
Reference in a new issue