mirror of
https://github.com/friendica/friendica
synced 2026-04-19 18:27:21 +02:00
Fix code quality
This commit is contained in:
parent
54916ebe5e
commit
f9a25bff74
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue