diff options
author | Mario <mario@mariovavti.com> | 2021-09-04 07:37:49 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-09-04 07:37:49 +0000 |
commit | c47e21f3a74e4290bd206c1f7edb377e809d7e42 (patch) | |
tree | cc47327416317f36b1a725f11595e18836907121 /Zotlabs/Lib/ActivityStreams.php | |
parent | d83c013becfb577dca85f18ea7f98da74f79739f (diff) | |
download | volse-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.php | 13 |
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; } } |