mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Salmon move to src
Salmon class, update function name and function calls. Some standards as well.
This commit is contained in:
parent
b5d24b5ac3
commit
2b121779a6
11 changed files with 250 additions and 230 deletions
|
@ -17,6 +17,7 @@ use Friendica\Object\Photo;
|
|||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\OStatus;
|
||||
use Friendica\Protocol\Salmon;
|
||||
use dba;
|
||||
|
||||
require_once 'boot.php';
|
||||
|
@ -71,8 +72,7 @@ class Contact extends BaseObject
|
|||
$slap = OStatus::salmon($item, $user);
|
||||
|
||||
if ((x($contact, 'notify')) && (strlen($contact['notify']))) {
|
||||
require_once 'include/salmon.php';
|
||||
slapper($user, $contact['notify'], $slap);
|
||||
Salmon::slapper($user, $contact['notify'], $slap);
|
||||
}
|
||||
} elseif ($contact['network'] === NETWORK_DIASPORA) {
|
||||
Diaspora::sendUnshare($user, $contact);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue