From 6421a32520588af4506f108036bb8ccaa9621465 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 30 Aug 2022 13:51:59 +0000 Subject: fix issue where an unkown diaspora author was not imported if the comment arrived via a relayed activity and a minor css fix --- Zotlabs/Lib/Activity.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Zotlabs/Lib/Activity.php') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index caeb1db4b..b400ffd61 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -3874,6 +3874,19 @@ class Activity { return $hookdata['actor']; } + static function get_unknown_actor($act) { + + // try other get_actor providers (e.g. diaspora) + $hookdata = [ + 'activity' => $act, + 'actor' => null + ]; + + call_hooks('get_actor_provider', $hookdata); + + return $hookdata['actor']; + } + static function get_actor_hublocs($url, $options = 'all') { switch ($options) { -- cgit v1.2.3