From accf7e424d23e8f343f4d0ecf053f65ab2800e77 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 24 Jan 2019 10:26:44 -0100 Subject: implementing caching for incoming request Signed-off-by: Maxence Lange --- lib/Service/ImportService.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Service/ImportService.php') diff --git a/lib/Service/ImportService.php b/lib/Service/ImportService.php index 24d8390e..de25268a 100644 --- a/lib/Service/ImportService.php +++ b/lib/Service/ImportService.php @@ -32,6 +32,7 @@ namespace OCA\Social\Service; use daita\MySmallPhpTools\Traits\TArrayTools; +use daita\MySmallPhpTools\Traits\TStringTools; use Exception; use OCA\Social\AP; use OCA\Social\Exceptions\ActivityPubFormatException; @@ -46,6 +47,7 @@ class ImportService { use TArrayTools; + use TStringTools; /** @var ConfigService */ @@ -94,6 +96,7 @@ class ImportService { */ public function parseIncomingRequest(ACore $activity) { $activity->checkOrigin($activity->getId()); + $activity->setRequestToken($this->uuid()); $interface = AP::$activityPub->getInterfaceForItem($activity); try { -- cgit v1.2.3