mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:50:11 +00:00
link_compare calls
implement compareLink function.
This commit is contained in:
parent
6fc9c6de3b
commit
5276c28a78
19 changed files with 32 additions and 30 deletions
|
@ -18,6 +18,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Protocol\Email;
|
||||
use Friendica\Util\Strings;
|
||||
|
||||
require_once 'include/items.php';
|
||||
|
||||
|
@ -247,7 +248,7 @@ class Delivery extends BaseObject
|
|||
|
||||
// perform local delivery if we are on the same site
|
||||
|
||||
if (link_compare($basepath, System::baseUrl())) {
|
||||
if (Strings::compareLink($basepath, System::baseUrl())) {
|
||||
$condition = ['nurl' => normalise_link($contact['url']), 'self' => true];
|
||||
$target_self = DBA::selectFirst('contact', ['uid'], $condition);
|
||||
if (!DBA::isResult($target_self)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue