Fix merge posts

The first post that containing a poll cannot be combined with a new post.
This commit is contained in:
Visman 2023-04-01 13:45:18 +07:00
parent 2b4cdd78dc
commit eaee8bff13

View file

@ -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) {