Fix error in App\WebMention.php

This commit is contained in:
Jonny Barnes 2017-06-27 17:29:16 +01:00
parent 24c200fe4a
commit 8acde31d87
2 changed files with 5 additions and 2 deletions

View file

@ -70,10 +70,10 @@ class WebMention extends Model
$microformats['items'][0]['properties']['published'][0]
)->toDayDateTimeString();
} catch (\Exception $exception) {
$published = $webmention->updated_at->toDayDateTimeString();
$published = $this->updated_at->toDayDateTimeString();
}
} else {
$published = $webmention->updated_at->toDayDateTimeString();
$published = $this->updated_at->toDayDateTimeString();
}
return $published;