forked from friendica/friendica-addons
Merge pull request #708 from annando/notices-oh-yeah
Removed notices that still had been creeping around ...
This commit is contained in:
commit
16439189e4
3 changed files with 13 additions and 5 deletions
|
@ -1203,7 +1203,10 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
|
||||||
$reply->cc = $post->cc;
|
$reply->cc = $post->cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($post->to)) {
|
||||||
$reply->to = $post->to;
|
$reply->to = $post->to;
|
||||||
|
}
|
||||||
|
|
||||||
$reply->object = new stdClass;
|
$reply->object = new stdClass;
|
||||||
$reply->object->objectType = $post->object->inReplyTo->objectType;
|
$reply->object->objectType = $post->object->inReplyTo->objectType;
|
||||||
$reply->object->content = $post->object->inReplyTo->content;
|
$reply->object->content = $post->object->inReplyTo->content;
|
||||||
|
@ -1271,10 +1274,15 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
|
||||||
$share_author = $post->object->author->url;
|
$share_author = $post->object->author->url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($post->object->created)) {
|
||||||
|
$created = DateTimeFormat::utc($post->object->created);
|
||||||
|
} else {
|
||||||
|
$created = '';
|
||||||
|
}
|
||||||
|
|
||||||
$postarray['body'] = share_header($share_author, $post->object->author->url,
|
$postarray['body'] = share_header($share_author, $post->object->author->url,
|
||||||
$post->object->author->image->url, "",
|
$post->object->author->image->url, "",
|
||||||
DateTimeFormat::utc($post->object->created),
|
$created, $post->links->self->href).
|
||||||
$post->links->self->href).
|
|
||||||
$postarray['body']."[/share]";
|
$postarray['body']."[/share]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1441,7 +1441,7 @@ function statusnet_convertmsg(App $a, $body, $no_tags = false)
|
||||||
|
|
||||||
$tempfile = tempnam(get_temppath(), "cache");
|
$tempfile = tempnam(get_temppath(), "cache");
|
||||||
file_put_contents($tempfile, $img_str);
|
file_put_contents($tempfile, $img_str);
|
||||||
$mime = image_type_to_mime_type(exif_imagetype($tempfile));
|
$mime = mime_content_type($tempfile);
|
||||||
unlink($tempfile);
|
unlink($tempfile);
|
||||||
|
|
||||||
if (substr($mime, 0, 6) == "image/") {
|
if (substr($mime, 0, 6) == "image/") {
|
||||||
|
|
|
@ -1724,7 +1724,7 @@ function twitter_fetchhometimeline(App $a, $uid)
|
||||||
|
|
||||||
$postarray = twitter_createpost($a, $uid, $post, $self, false, false, false);
|
$postarray = twitter_createpost($a, $uid, $post, $self, false, false, false);
|
||||||
|
|
||||||
if (trim($postarray['body']) == "") {
|
if (empty($postarray['body'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue