mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
New uri format for our posts that is AP compatible
This commit is contained in:
parent
2e7ca76e15
commit
fb5b6e4a14
2 changed files with 6 additions and 16 deletions
|
@ -2329,13 +2329,7 @@ class Item extends BaseObject
|
|||
$guid = System::createGUID(32);
|
||||
}
|
||||
|
||||
$hostname = self::getApp()->get_hostname();
|
||||
|
||||
$user = DBA::selectFirst('user', ['nickname'], ['uid' => $uid]);
|
||||
|
||||
$uri = "urn:X-dfrn:" . $hostname . ':' . $user['nickname'] . ':' . $guid;
|
||||
|
||||
return $uri;
|
||||
return self::getApp()->get_baseurl() . '/object/' . $guid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue