mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
Some more deprecated function calls are replaced
This commit is contained in:
parent
bd6616e84f
commit
e12f92e516
30 changed files with 101 additions and 163 deletions
|
@ -24,6 +24,7 @@ namespace Friendica\Module\Contact;
|
|||
use Friendica\App;
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Contact\LocalRelationship;
|
||||
use Friendica\Contact\LocalRelationship\Entity\LocalRelationship as LocalRelationshipEntity;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Nav;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
|
@ -323,24 +324,24 @@ class Profile extends BaseModule
|
|||
|
||||
if ($contact['network'] == Protocol::FEED) {
|
||||
$remote_self_options = [
|
||||
Contact::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
Contact::MIRROR_OWN_POST => $this->t('Mirror as my own posting')
|
||||
LocalRelationshipEntity::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
LocalRelationshipEntity::MIRROR_OWN_POST => $this->t('Mirror as my own posting')
|
||||
];
|
||||
} elseif ($contact['network'] == Protocol::ACTIVITYPUB) {
|
||||
$remote_self_options = [
|
||||
Contact::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
Contact::MIRROR_NATIVE_RESHARE => $this->t('Native reshare')
|
||||
LocalRelationshipEntity::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
LocalRelationshipEntity::MIRROR_NATIVE_RESHARE => $this->t('Native reshare')
|
||||
];
|
||||
} elseif ($contact['network'] == Protocol::DFRN) {
|
||||
$remote_self_options = [
|
||||
Contact::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
Contact::MIRROR_OWN_POST => $this->t('Mirror as my own posting'),
|
||||
Contact::MIRROR_NATIVE_RESHARE => $this->t('Native reshare')
|
||||
LocalRelationshipEntity::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
LocalRelationshipEntity::MIRROR_OWN_POST => $this->t('Mirror as my own posting'),
|
||||
LocalRelationshipEntity::MIRROR_NATIVE_RESHARE => $this->t('Native reshare')
|
||||
];
|
||||
} else {
|
||||
$remote_self_options = [
|
||||
Contact::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
Contact::MIRROR_OWN_POST => $this->t('Mirror as my own posting')
|
||||
LocalRelationshipEntity::MIRROR_DEACTIVATED => $this->t('No mirroring'),
|
||||
LocalRelationshipEntity::MIRROR_OWN_POST => $this->t('Mirror as my own posting')
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue