Diaspora: The hostname is now send, so that at Diaspora there is a line telling "via ..."

This commit is contained in:
Michael Vogel 2014-04-22 15:28:23 +02:00
parent ce997a0367
commit a23099a6fd
3 changed files with 9 additions and 5 deletions

View file

@ -61,11 +61,12 @@ class Diasphp {
return $this;
}
function post($text) {
function post($text, $provider = "diasphp") {
// post-daten vorbereiten
$datatopost = json_encode(array(
'aspect_ids' => 'public',
'status_message' => array('text' => $text)
'status_message' => array('text' => $text,
'provider_display_name' => $provider)
));
// header vorbereiten