diff --git a/Code/Lib/ActivityPub.php b/Code/Lib/ActivityPub.php index 555cfcb1e..b701a1b71 100644 --- a/Code/Lib/ActivityPub.php +++ b/Code/Lib/ActivityPub.php @@ -189,7 +189,7 @@ class ActivityPub return false; } - $hash = random_string(); + $hash = new_uuid(); logger('queue: ' . $hash . ' ' . $dest_url, LOGGER_DEBUG); Queue::insert([ diff --git a/Code/Lib/Queue.php b/Code/Lib/Queue.php index 37a8e2cea..281ae396d 100644 --- a/Code/Lib/Queue.php +++ b/Code/Lib/Queue.php @@ -182,12 +182,13 @@ class Queue $x = q( - "insert into outq ( outq_hash, outq_account, outq_channel, outq_driver, outq_posturl, outq_async, outq_priority, + "insert into outq ( outq_hash, outq_account, outq_channel, outq_mid, outq_driver, outq_posturl, outq_async, outq_priority, outq_created, outq_updated, outq_scheduled, outq_notify, outq_msg, outq_log ) - values ( '%s', %d, %d, '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '' )", + values ( '%s', %d, %d, '%s', '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s', '' )", dbesc($arr['hash']), intval($arr['account_id']), intval($arr['channel_id']), + dbesc(($arr['mid'] ?? ''), dbesc((isset($arr['driver']) && $arr['driver']) ? $arr['driver'] : 'nomad'), dbesc($arr['posturl']), intval(1), diff --git a/Code/Module/Webfinger.php b/Code/Module/Webfinger.php index 62046dfc2..2a7b949d4 100644 --- a/Code/Module/Webfinger.php +++ b/Code/Module/Webfinger.php @@ -84,7 +84,7 @@ class Webfinger extends Controller } if ($channel_target || $site_query) { - $h = get_hubloc_addrs_by_hash($channel_target['channel_hash']); + $h = get_locations_by_hash($channel_target['channel_hash']); if (!isset($result['subject'])) { $result['subject'] = $resource; @@ -100,6 +100,7 @@ class Webfinger extends Controller if ($h) { foreach ($h as $hh) { $aliases[] = 'acct:' . $hh['hubloc_addr']; + $aliases[] = $hh['hubloc_id_url']; } } diff --git a/Code/Update/_1272.php b/Code/Update/_1272.php new file mode 100644 index 000000000..0f0c8bf10 --- /dev/null +++ b/Code/Update/_1272.php @@ -0,0 +1,43 @@ +