We now set the protocol in "gserver" on receiving as well

This commit is contained in:
Michael 2021-03-10 22:31:33 +00:00
parent 5e98a38ac9
commit 9e87dcb25b
6 changed files with 65 additions and 3 deletions

View file

@ -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.