From d7aee292d3b549e6c7453da7cb93b63ccdc1a5b1 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 11 Mar 2023 14:47:10 +0000 Subject: mark items as fetched in other places --- Zotlabs/Daemon/Convo.php | 1 + Zotlabs/Daemon/Externals.php | 1 + Zotlabs/Daemon/Onepoll.php | 1 + 3 files changed, 3 insertions(+) (limited to 'Zotlabs/Daemon') diff --git a/Zotlabs/Daemon/Convo.php b/Zotlabs/Daemon/Convo.php index d1a7e4f4d..e05f7539e 100644 --- a/Zotlabs/Daemon/Convo.php +++ b/Zotlabs/Daemon/Convo.php @@ -55,6 +55,7 @@ class Convo { $AS = new ActivityStreams($message); if ($AS->is_valid() && is_array($AS->obj)) { $item = Activity::decode_note($AS); + $item['item_fetched'] = true; Activity::store($channel, $contact['abook_xchan'], $AS, $item); } } diff --git a/Zotlabs/Daemon/Externals.php b/Zotlabs/Daemon/Externals.php index 2c7c7c172..b67a0e286 100644 --- a/Zotlabs/Daemon/Externals.php +++ b/Zotlabs/Daemon/Externals.php @@ -143,6 +143,7 @@ class Externals { $AS = new ActivityStreams($message); if ($AS->is_valid() && is_array($AS->obj)) { $item = Activity::decode_note($AS); + $item['item_fetched'] = true; Activity::store($importer, $contact['hubloc_hash'], $AS, $item); $total++; } diff --git a/Zotlabs/Daemon/Onepoll.php b/Zotlabs/Daemon/Onepoll.php index 0a30a0c7d..bde39007e 100644 --- a/Zotlabs/Daemon/Onepoll.php +++ b/Zotlabs/Daemon/Onepoll.php @@ -172,6 +172,7 @@ class Onepoll { $AS = new ActivityStreams($message); if ($AS->is_valid() && is_array($AS->obj)) { $item = Activity::decode_note($AS); + $item['item_fetched'] = true; Activity::store($importer, $contact['abook_xchan'], $AS, $item); } } -- cgit v1.2.3