"First accepted solution" trigger doesn't work

AI-generated summary

Moin reported a bug where the “First accepted solution” automation trigger stopped sending personal messages when a user deletes a topic for the first time — despite working previously and other automations (like group assignment) still functioning. The issue appeared unrelated to configuration, with trust level set to “any,” admin as sender, and zero delay. Moin speculated that the system might incorrectly count the newly solved post as already having been solved during the automation check. nat acknowledged the report and later confirmed the fix via GitHub PR #378 nat. Moin verified the fix was successful and celebrated the restoration of functionality.

I have a problem with sending a personal message when the user deletes a topic for the first time.

Two weeks ago, this worked very well (a bit too well, thanks for fixing that). But now, no message is sent even for a newly created user.

I didn’t edit the automation, so I don’t think it’s related to the settings. In case it matters, trust level is any, my admin user is the PM sender, and the delay is 0. Of course, the automation is enabled. The plugin in general also works; the “add to group based on a custom user field” automation just ran, but the solution one does not.

Is it possible that the post just marked as a solution is taken into account in the check whether the user has already solved a topic and therefore every user has already solved a topic when the check is running in the automation?

2 Likes

Thanks for the report, I’ll be looking into this. :ok_hand:

1 Like

Many thanks, @Moin. This has been fixed here: FIX: Exclude the first solution itself when checking if an existing solution by nattsw · Pull Request #378 · discourse/discourse-solved · GitHub

2 Likes

Thank you. I just checked, and it works again :partying_face:

2 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.