mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 00:53:41 +00:00
Diaspora - set host to empty if it doesn't exist.
This commit is contained in:
parent
17216898ff
commit
59fe5be987
1 changed files with 5 additions and 1 deletions
|
@ -46,7 +46,11 @@ class Diaspora_Connection {
|
||||||
public function setDiasporaID($id) {
|
public function setDiasporaID($id) {
|
||||||
$parts = explode('@', $id);
|
$parts = explode('@', $id);
|
||||||
$this->user = $parts[0];
|
$this->user = $parts[0];
|
||||||
$this->host = $parts[1];
|
if (count($parts) > 1) {
|
||||||
|
$this->host = $parts[1];
|
||||||
|
} else {
|
||||||
|
$this->host = '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDiasporaID() {
|
public function getDiasporaID() {
|
||||||
|
|
Loading…
Reference in a new issue