summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2023-04-11 18:01:45 -0100
committerGitHub <noreply@github.com>2023-04-11 18:01:45 -0100
commit3c93bf2141717682c21f22a669a1477d4b74fc02 (patch)
tree7cddcb2772cbb09d7ac2a1c829a60cf538a148f7
parent6d945ff03c6a381c5fcf2380044f7f72b3336481 (diff)
parentbe5f327511038584afd1f89b43b4543bf1680986 (diff)
Merge pull request #1730 from nextcloud/fix/noid/created-at-in-notif
created_at in notif
-rw-r--r--lib/Model/ActivityPub/Stream.php2
-rw-r--r--lib/Service/BoostService.php23
2 files changed, 2 insertions, 23 deletions
diff --git a/lib/Model/ActivityPub/Stream.php b/lib/Model/ActivityPub/Stream.php
index ca34a237..6ffc5a73 100644
--- a/lib/Model/ActivityPub/Stream.php
+++ b/lib/Model/ActivityPub/Stream.php
@@ -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,
];
diff --git a/lib/Service/BoostService.php b/lib/Service/BoostService.php
index eefaf3ac..3bbfbc3f 100644
--- a/lib/Service/BoostService.php
+++ b/lib/Service/BoostService.php
@@ -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;
}