aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ActivityStreams.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-09-04 07:37:49 +0000
committerMario <mario@mariovavti.com>2021-09-04 07:37:49 +0000
commitc47e21f3a74e4290bd206c1f7edb377e809d7e42 (patch)
treecc47327416317f36b1a725f11595e18836907121 /Zotlabs/Lib/ActivityStreams.php
parentd83c013becfb577dca85f18ea7f98da74f79739f (diff)
downloadvolse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.tar.gz
volse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.tar.bz2
volse-hubzilla-c47e21f3a74e4290bd206c1f7edb377e809d7e42.zip
refactor actor_store and actor cache part 1
Diffstat (limited to 'Zotlabs/Lib/ActivityStreams.php')
-rw-r--r--Zotlabs/Lib/ActivityStreams.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php
index 2324a8136..fa38c569e 100644
--- a/Zotlabs/Lib/ActivityStreams.php
+++ b/Zotlabs/Lib/ActivityStreams.php
@@ -300,17 +300,8 @@ class ActivityStreams {
function get_actor($property, $base = '', $namespace = '') {
$x = $this->get_property_obj($property, $base, $namespace);
if ($this->is_url($x)) {
-
- // SECURITY: If we have already stored the actor profile, re-generate it
- // from cached data - don't refetch it from the network
-
- $r = q("select * from xchan join hubloc on xchan_hash = hubloc_hash where hubloc_id_url = '%s'",
- dbesc($x)
- );
- if ($r) {
- $r = Libzot::zot_record_preferred($r);
- $y = Activity::encode_person($r);
- $y['cached'] = true;
+ $y = Activity::get_cached_actor($x);
+ if ($y) {
return $y;
}
}