Merge branch 'hotfix/0.5.8'
This commit is contained in:
commit
2c85b97ba2
2 changed files with 10 additions and 3 deletions
|
@ -112,9 +112,13 @@ class NotesController extends Controller
|
||||||
case 'in-reply-to':
|
case 'in-reply-to':
|
||||||
$content['source'] = $webmention->source;
|
$content['source'] = $webmention->source;
|
||||||
if (isset($microformats['items'][0]['properties']['published'][0])) {
|
if (isset($microformats['items'][0]['properties']['published'][0])) {
|
||||||
$content['date'] = $carbon->parse(
|
try {
|
||||||
$microformats['items'][0]['properties']['published'][0]
|
$content['date'] = $carbon->parse(
|
||||||
)->toDayDateTimeString();
|
$microformats['items'][0]['properties']['published'][0]
|
||||||
|
)->toDayDateTimeString();
|
||||||
|
} catch (\Exception $exception) {
|
||||||
|
$content['date'] = $webmention->updated_at->toDayDateTimeString();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$content['date'] = $webmention->updated_at->toDayDateTimeString();
|
$content['date'] = $webmention->updated_at->toDayDateTimeString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## Version 0.5.8 (2017-05-21)
|
||||||
|
- Hotfix: if Carbon can’t parse the supplied published date of a webmention, use the Model’s `updated_at` value
|
||||||
|
|
||||||
## Version 0.5.7 (2017-05-19)
|
## Version 0.5.7 (2017-05-19)
|
||||||
- Hotfix: make sure `mpSyndicateTo` variable exists when accessed in if statements
|
- Hotfix: make sure `mpSyndicateTo` variable exists when accessed in if statements
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue