mirror of
https://github.com/friendica/friendica
synced 2025-05-25 17:44:13 +02:00
Improved logging
This commit is contained in:
parent
5a16a424ac
commit
c1bb1cf0fc
3 changed files with 37 additions and 13 deletions
|
@ -2639,7 +2639,12 @@ class Diaspora
|
|||
}
|
||||
|
||||
$tags = array_column(Tag::getByURIId($uriid, [Tag::HASHTAG]), 'name');
|
||||
return Relay::isSolicitedPost($tags, $body, $contact['id'], $url, Protocol::DIASPORA);
|
||||
if (Relay::isSolicitedPost($tags, $body, $contact['id'], $url, Protocol::DIASPORA)) {
|
||||
Logger::debug('Post is accepted because of the relay settings', ['url' => $url, 'author' => $author]);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2669,7 +2674,7 @@ class Diaspora
|
|||
* @param SimpleXMLElement $data The message object
|
||||
* @param string $xml The original XML of the message
|
||||
* @param int $direction Indicates if the message had been fetched or pushed
|
||||
*
|
||||
*
|
||||
* @return int The message id of the newly created item
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
* @throws \ImagickException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue