Merge pull request #1730 from nextcloud/fix/noid/created-at-in-notif

created_at in notif
pull/1731/head
Maxence Lange 2023-04-11 18:01:45 -01:00 zatwierdzone przez GitHub
commit 3c93bf2141
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
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;
}