summaryrefslogtreecommitdiffstats
path: root/lib/Model
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-20 11:22:48 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-12-20 11:22:48 -0100
commit2a41f1ea1dd90b7f381ea6a0bd2e11edee5694a4 (patch)
treee747c75e42fc85dea46411bd62744e624fa0579a /lib/Model
parenta8fea82b230aeb620c9225222da90d3700c72913 (diff)
signed header generation moved to SignatureService
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/ActivityPub/Object/Note.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Model/ActivityPub/Object/Note.php b/lib/Model/ActivityPub/Object/Note.php
index 185f4ec9..dfdc3a11 100644
--- a/lib/Model/ActivityPub/Object/Note.php
+++ b/lib/Model/ActivityPub/Object/Note.php
@@ -34,6 +34,7 @@ use DateTime;
use JsonSerializable;
use OCA\Social\Model\ActivityPub\ACore;
use OCA\Social\Service\ActivityService;
+use OCA\Social\Service\SignatureService;
class Note extends ACore implements JsonSerializable {
@@ -195,7 +196,7 @@ class Note extends ACore implements JsonSerializable {
*/
public function convertPublished() {
$dTime = new DateTime($this->getPublished());
- $dTime->format(ActivityService::DATE_FORMAT);
+ $dTime->format(SignatureService::DATE_FORMAT);
$this->setPublishedTime($dTime->getTimestamp());
}