mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-03 18:30:47 +00:00
Update CollectionService, revert timestamp change
This commit is contained in:
parent
3bf792072a
commit
eac3220ffd
1 changed files with 4 additions and 4 deletions
|
@ -84,8 +84,8 @@ class CollectionService
|
||||||
'description' => $collection->description,
|
'description' => $collection->description,
|
||||||
'thumb' => url('/storage/no-preview.png'),
|
'thumb' => url('/storage/no-preview.png'),
|
||||||
'url' => $collection->url(),
|
'url' => $collection->url(),
|
||||||
'updated_at' => str_replace('+00:00', 'Z', $collection->updated_at->format(DATE_RFC3339_EXTENDED)),
|
'updated_at' => $collection->updated_at,
|
||||||
'published_at' => str_replace('+00:00', 'Z', $collection->published_at->format(DATE_RFC3339_EXTENDED)),
|
'published_at' => $collection->published_at,
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -117,8 +117,8 @@ class CollectionService
|
||||||
'description' => $collection->description,
|
'description' => $collection->description,
|
||||||
'thumb' => self::getThumb($id),
|
'thumb' => self::getThumb($id),
|
||||||
'url' => $collection->url(),
|
'url' => $collection->url(),
|
||||||
'updated_at' => str_replace('+00:00', 'Z', $collection->updated_at->format(DATE_RFC3339_EXTENDED)),
|
'updated_at' => $collection->updated_at,
|
||||||
'published_at' => str_replace('+00:00', 'Z', $collection->published_at->format(DATE_RFC3339_EXTENDED)),
|
'published_at' => $collection->published_at,
|
||||||
];
|
];
|
||||||
Cache::put(self::CACHE_KEY . 'get:' . $id, $res, 86400);
|
Cache::put(self::CACHE_KEY . 'get:' . $id, $res, 86400);
|
||||||
$res['post_count'] = self::count($id);
|
$res['post_count'] = self::count($id);
|
||||||
|
|
Loading…
Reference in a new issue