Upgrade to Laravel v7

This commit is contained in:
Jonny Barnes 2020-06-13 16:32:42 +01:00
parent dd4573cb45
commit 7fc3fb19c0
8 changed files with 1337 additions and 766 deletions

View file

@ -542,8 +542,8 @@ class Note extends Model
public function setContacts(): void
{
$contacts = [];
if ($this->getOriginal('note')) {
preg_match_all(self::USERNAMES_REGEX, $this->getoriginal('note'), $matches);
if ($this->getRawOriginal('note')) {
preg_match_all(self::USERNAMES_REGEX, $this->getRawOriginal('note'), $matches);
foreach ($matches[1] as $match) {
$contacts[$match] = Contact::where('nick', mb_strtolower($match))->first();