X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsalmon.php;h=1e92980f1ceb123a2ef362e97581fc780be7e816;hb=48a783c91a4fdff2182deb5d137712386f9f3086;hp=ea5c334c0807a0460c54769fcee323b67035817c;hpb=dc5838ecf9ae0b0f6c7ac84af7985a863d495a46;p=friendica.git diff --git a/mod/salmon.php b/mod/salmon.php index ea5c334c08..1e92980f1c 100644 --- a/mod/salmon.php +++ b/mod/salmon.php @@ -1,6 +1,6 @@ data[0]->attributes()->type[0]; - $keyhash = $base->sig[0]->attributes()->keyhash[0]; + $keyhash = $base->sig[0]->attributes()->keyhash[0] ?? ''; $encoding = $base->encoding; $alg = $base->alg; @@ -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.