1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update v1.1 api

This commit is contained in:
Daniel Supernault 2022-09-25 03:28:43 -06:00
parent fa88cf4ea6
commit 12f9539054
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -327,7 +327,7 @@ class ApiV1Dot1Controller extends Controller
'subject' => 'Confirm Email', 'subject' => 'Confirm Email',
'to_address' => $user->email, 'to_address' => $user->email,
'from_address' => $from, 'from_address' => $from,
'created_at' => $mail->created_at->format('c') 'created_at' => str_replace('@', 'at', $mail->created_at->format('M j, Y @ g:i:s A'))
]; ];
}) })
->toArray(); ->toArray();
@ -344,7 +344,7 @@ class ApiV1Dot1Controller extends Controller
'subject' => 'Reset Password Notification', 'subject' => 'Reset Password Notification',
'to_address' => $user->email, 'to_address' => $user->email,
'from_address' => $from, 'from_address' => $from,
'created_at' => now()->parse($mail->created_at)->format('c') 'created_at' => str_replace('@', 'at', now()->parse($mail->created_at)->format('M j, Y @ g:i:s A'))
]; ];
}) })
->toArray(); ->toArray();
@ -361,7 +361,7 @@ class ApiV1Dot1Controller extends Controller
'subject' => 'Password Change', 'subject' => 'Password Change',
'to_address' => $user->email, 'to_address' => $user->email,
'from_address' => $from, 'from_address' => $from,
'created_at' => now()->parse($mail->created_at)->format('c') 'created_at' => str_replace('@', 'at', now()->parse($mail->created_at)->format('M j, Y @ g:i:s A'))
]; ];
}) })
->toArray(); ->toArray();