created_at in notif

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1730/head
Maxence Lange 2023-04-11 17:50:47 -01:00
rodzic 6d945ff03c
commit be5f327511
2 zmienionych plików z 2 dodań i 23 usunięć

Wyświetl plik

@ -695,7 +695,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
$result = [
'id' => (string)$this->getNid(),
'type' => $type,
'created_at' => $this->getOriginCreationTime(),
'created_at' => date('Y-m-d\TH:i:s', $this->getPublishedTime()) . '.000Z',
'status' => $status,
];

Wyświetl plik

@ -53,37 +53,17 @@ use OCA\Social\Tools\Traits\TStringTools;
class BoostService {
use TStringTools;
private StreamRequest $streamRequest;
private StreamService $streamService;
private SignatureService $signatureService;
private ActivityService $activityService;
private StreamActionService $streamActionService;
private StreamQueueService $streamQueueService;
private MiscService $miscService;
/**
* BoostService constructor.
*
* @param StreamRequest $streamRequest
* @param StreamService $streamService
* @param SignatureService $signatureService
* @param ActivityService $activityService
* @param StreamActionService $streamActionService
* @param StreamQueueService $streamQueueService
* @param MiscService $miscService
*/
public function __construct(
StreamRequest $streamRequest, StreamService $streamService, SignatureService $signatureService,
ActivityService $activityService, StreamActionService $streamActionService,
StreamQueueService $streamQueueService, MiscService $miscService
StreamQueueService $streamQueueService
) {
$this->streamRequest = $streamRequest;
$this->streamService = $streamService;
@ -91,7 +71,6 @@ class BoostService {
$this->activityService = $activityService;
$this->streamActionService = $streamActionService;
$this->streamQueueService = $streamQueueService;
$this->miscService = $miscService;
}