Version 0.0.15.8

Hotfix: Facebook’s love-of are sent as a reply without a published date
 fallback to webemntion’s local updated_at value in this case.
 -----BEGIN PGP SIGNATURE-----
 
 iPQEABMKAHwFAlggccJfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
 bnBncC5maWZ0aGhvcnNlbWFuLm5ldDg0MTlCNUExRDg4NENBRjRCMEFGOEZCMzFC
 MkM3NkFGQjE2Qzg1OUIVHGpvbm55QGpvbm55YmFybmVzLnVrAAoJEBssdq+xbIWb
 IoIBfjwMobnrcLr03AByX2/FmOcxw5qQKcPwWlFFZhmvQ0Mu3iP3Rr8WCl6+L94+
 rHRCOAGAx0UpdhGbKvXOxXmscStwYpn3o6j9havfl//C5pSN58Q8RyXmm8GbyNMV
 bch0t4hK
 =9HeB
 -----END PGP SIGNATURE-----

Merge tag 'v0.0.15.8' into develop

Version 0.0.15.8

Hotfix: Facebook’s love-of are sent as a reply without a published date
fallback to webemntion’s local updated_at value in this case.
This commit is contained in:
Jonny Barnes 2016-11-07 12:21:30 +00:00
commit a3beb1ac2b
2 changed files with 8 additions and 1 deletions

View file

@ -104,7 +104,11 @@ class NotesController extends Controller
switch ($webmention->type) {
case 'in-reply-to':
$content['source'] = $webmention->source;
$content['date'] = $carbon->parse($microformats['items'][0]['properties']['published'][0])->toDayDateTimeString();
if (isset($microformats['items'][0]['properties']['published'][0])) {
$content['date'] = $carbon->parse($microformats['items'][0]['properties']['published'][0])->toDayDateTimeString();
} else {
$content['date'] = $note->webmention->updated_at->toDayDateTimeString();
}
$content['reply'] = $this->filterHTML($microformats['items'][0]['properties']['content'][0]['html']);
$replies[] = $content;
break;

View file

@ -1,5 +1,8 @@
# Changelog
## Version 0.0.15.8 (2016-11-07)
- Hotfix: facebooks love-of appears as an in-reply-to without a published date
## Version 0.0.15.7 (2016-11-07)
- Add a reply icon in note metadata
- Allow notes to be deleted