Merge pull request #8198 from nupplaphil/bug/intro_send_share
Fix Introduction Diaspore sendShare()
This commit is contained in:
commit
478006c193
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ use Psr\Log\LoggerInterface;
|
||||||
* @property bool blocked
|
* @property bool blocked
|
||||||
* @property bool ignore
|
* @property bool ignore
|
||||||
*/
|
*/
|
||||||
final class Introduction extends BaseModel
|
class Introduction extends BaseModel
|
||||||
{
|
{
|
||||||
/** @var Repository\Introduction */
|
/** @var Repository\Introduction */
|
||||||
protected $intro;
|
protected $intro;
|
||||||
|
@ -97,7 +97,7 @@ final class Introduction extends BaseModel
|
||||||
|
|
||||||
if ($newRelation == Contact::FRIEND) {
|
if ($newRelation == Contact::FRIEND) {
|
||||||
if ($protocol == Protocol::DIASPORA) {
|
if ($protocol == Protocol::DIASPORA) {
|
||||||
$ret = Diaspora::sendShare(Contact::getById($contact['uid']), $contact);
|
$ret = Diaspora::sendShare(User::getById($contact['uid']), $contact);
|
||||||
$this->logger->info('share returns', ['return' => $ret]);
|
$this->logger->info('share returns', ['return' => $ret]);
|
||||||
} elseif ($protocol == Protocol::ACTIVITYPUB) {
|
} elseif ($protocol == Protocol::ACTIVITYPUB) {
|
||||||
ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $contact['uid']);
|
ActivityPub\Transmitter::sendActivity('Follow', $contact['url'], $contact['uid']);
|
||||||
|
|
Loading…
Reference in a new issue