aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-23 13:21:56 +0000
committerMario <mario@mariovavti.com>2023-11-23 13:21:56 +0000
commita396e74a79238779bd7efaac0c6ae59b20d5f114 (patch)
tree38d8106d60e4ba98a0a6c06e54b3e5f7e35eb189 /Zotlabs/Lib
parent80bdb39ae3fe7600d5a855ade1d4e8863ca866ee (diff)
downloadvolse-hubzilla-a396e74a79238779bd7efaac0c6ae59b20d5f114.tar.gz
volse-hubzilla-a396e74a79238779bd7efaac0c6ae59b20d5f114.tar.bz2
volse-hubzilla-a396e74a79238779bd7efaac0c6ae59b20d5f114.zip
like in get_cached_actor() also remove fragment in get_actor()
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Activity.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 7089f043c..835909849 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -4056,6 +4056,9 @@ class Activity {
}
static function get_actor($actor_id) {
+ // remove fragment
+ $actor_id = ((strpos($actor_id, '#')) ? substr($actor_id, 0, strpos($actor_id, '#')) : $actor_id);
+
$actor = self::get_cached_actor($actor_id);
if ($actor) {