summaryrefslogtreecommitdiffstats
path: root/lib/Service/FeedServiceV2.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-11-16 20:49:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-08 13:58:12 +0100
commit4ee3fcb78113caff9f2b890cb7d1702dc936d81e (patch)
treef8fc506f997acdb8e5315c62bb068b0b6db6cd56 /lib/Service/FeedServiceV2.php
parent8abddeab4f541883721d912f97dec07bffdfc6b8 (diff)
Refactor User ID fetching and fix non-specific cleanup
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Service/FeedServiceV2.php')
-rw-r--r--lib/Service/FeedServiceV2.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Service/FeedServiceV2.php b/lib/Service/FeedServiceV2.php
index 94878d5fe..16402d0da 100644
--- a/lib/Service/FeedServiceV2.php
+++ b/lib/Service/FeedServiceV2.php
@@ -328,9 +328,17 @@ class FeedServiceV2 extends Service
$this->mapper->delete($feed);
}
- public function purgeDeleted(): void
+ /**
+ * Remove deleted entities.
+ *
+ * @param string|null $userID The user to purge
+ * @param int|null $minTimestamp The timestamp to purge from
+ *
+ * @return void
+ */
+ public function purgeDeleted(?string $userID, ?int $minTimestamp): void
{
- $this->mapper->purgeDeleted();
+ $this->mapper->purgeDeleted($userID, $minTimestamp);
}
public function fetchAll(): void