The merge logic is delegated to the new post. (As an example, a
DiscussionRenamedPost will merge if adjacent to another
DiscussionRenamedPost, and delete if the title has been reverted
completely.)
public mergePost ( Flarum\Core\Post\MergeableInterface $post ) : Post | ||
$post | Flarum\Core\Post\MergeableInterface | The post to save. |
return | Post | The resulting post. It may or may not be the same post as was originally intended to be saved. It also may not exist, if the merge logic resulted in deletion. |