mirror of
https://github.com/flarum/core.git
synced 2025-08-15 04:44:08 +02:00
Fix error when replying to a post by a deleted user
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
@@ -129,7 +129,7 @@ class UpdatePostMentionsMetadata
|
||||
->whereIn('id', $mentioned)
|
||||
->get()
|
||||
->filter(function ($post) use ($reply) {
|
||||
return $post->user->id !== $reply->user->id;
|
||||
return $post->user && $post->user->id !== $reply->user_id;
|
||||
})
|
||||
->all();
|
||||
|
||||
|
Reference in New Issue
Block a user