Traewelling / traewelling

Free check-in service to log your public transit journeys
https://traewelling.de
GNU Affero General Public License v3.0
235 stars 47 forks source link

Issues with mastodon servers are reported to the wrong people #2983

Open HerrLevin opened 3 weeks ago

HerrLevin commented 3 weeks ago

Describe the bug

Some users will get the notification for a unrelated mastodon server due to \App\Console\Commands\DatabaseCleaner\MastodonServers::fetchUsers.

Steps to reproduce (this is an approximation based on a user report and database analysis)

  1. Create User with ID 1
  2. Create User with ID 2
  3. Connect User 2 with mastodon, resulting in a social_login_profile with reference 1
  4. delete the mastodon server
  5. post something from user 2 to mastodon
  6. get notification at user 1

Browser console logs

No response

Browser

No response