Fix code quality

This commit is contained in:
Michael 2026-04-06 06:14:06 +00:00
commit f9a25bff74

View file

@ -596,12 +596,12 @@ final class ATProtocol
* @param integer $uid User id to get the web for (0 for global)
* @return string Profile link
*/
public function getPostLink(string $uri, int $uid = 0): string
public function getPostLink(string $did, int $uid = 0): string
{
$web = $this->getWebForUser($uid);
$frontends = $this->config->get('atprotocol', 'frontends');
if ($web && is_array($frontends) && isset($frontends[$web])) {
$parts = explode('/', $uri);
$parts = explode('/', $did);
if (count($parts) === 5) {
$did = $parts[2];
$collection = $parts[3];