mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
We now set the protocol in "gserver" on receiving as well
This commit is contained in:
parent
5e98a38ac9
commit
9e87dcb25b
6 changed files with 65 additions and 3 deletions
|
@ -25,6 +25,8 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GServer;
|
||||
use Friendica\Model\Post;
|
||||
use Friendica\Protocol\ActivityNamespace;
|
||||
use Friendica\Protocol\OStatus;
|
||||
use Friendica\Protocol\Salmon;
|
||||
|
@ -185,6 +187,10 @@ function salmon_post(App $a, $xml = '') {
|
|||
}
|
||||
}
|
||||
|
||||
if (!empty($r[0]['gsid'])) {
|
||||
GServer::setProtocol($r[0]['gsid'], Post\DeliveryData::OSTATUS);
|
||||
}
|
||||
|
||||
// Have we ignored the person?
|
||||
// If so we can not accept this post.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue