mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 14:03:16 +00:00
Update AP helpers, enforce UTC
This commit is contained in:
parent
d91884b6ea
commit
18931a1ffc
1 changed files with 2 additions and 2 deletions
|
@ -470,7 +470,7 @@ class Helpers {
|
||||||
$status->object_url = $id;
|
$status->object_url = $id;
|
||||||
$status->caption = strip_tags($activity['content']);
|
$status->caption = strip_tags($activity['content']);
|
||||||
$status->rendered = Purify::clean($activity['content']);
|
$status->rendered = Purify::clean($activity['content']);
|
||||||
$status->created_at = Carbon::parse($ts);
|
$status->created_at = Carbon::parse($ts)->tz('UTC');
|
||||||
$status->in_reply_to_id = $reply_to;
|
$status->in_reply_to_id = $reply_to;
|
||||||
$status->local = false;
|
$status->local = false;
|
||||||
$status->is_nsfw = $cw;
|
$status->is_nsfw = $cw;
|
||||||
|
@ -580,7 +580,7 @@ class Helpers {
|
||||||
$status->object_url = $id;
|
$status->object_url = $id;
|
||||||
$status->caption = strip_tags($res['content']);
|
$status->caption = strip_tags($res['content']);
|
||||||
$status->rendered = Purify::clean($res['content']);
|
$status->rendered = Purify::clean($res['content']);
|
||||||
$status->created_at = Carbon::parse($ts);
|
$status->created_at = Carbon::parse($ts)->tz('UTC');
|
||||||
$status->in_reply_to_id = null;
|
$status->in_reply_to_id = null;
|
||||||
$status->local = false;
|
$status->local = false;
|
||||||
$status->is_nsfw = $cw;
|
$status->is_nsfw = $cw;
|
||||||
|
|
Loading…
Reference in a new issue