Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto merge double posts throws an error when a post contains a mention #30

Open
rafaucau opened this issue Jul 9, 2021 · 0 comments
Open
Labels

Comments

@rafaucau
Copy link
Contributor

rafaucau commented Jul 9, 2021

Bug Report

Current Behavior
When I write a post and then another post where I mention a user, I get an error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`flarum`.`post_mentions_user`, CONSTRAINT `post_mentions_user_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`) ON DELETE CASCADE)

Steps to Reproduce
1.Enable Auto merge double posts
2. Write a post in which you mention a user

Screenshots
image

Environment

  • Flarum version: 1.0.4
  • Extension version: 1.0.1
  • Webserver: [apache, litepseed]
  • PHP version: 7.4, 8.0
@rafaucau rafaucau added the bug label Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant