]> git.mxchange.org Git - friendica-addons.git/commitdiff
Removed notices that still had been creeping around ...
authorMichael <heluecht@pirati.ca>
Fri, 17 Aug 2018 03:23:00 +0000 (03:23 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Aug 2018 03:23:00 +0000 (03:23 +0000)
pumpio/pumpio.php
statusnet/statusnet.php
twitter/twitter.php

index f615eda23c9bd7a9d0ff0cbc158012d708b8d81b..862a75b54917bc2658d9cff5c839d31b64aaf3a7 100644 (file)
@@ -1203,7 +1203,10 @@ function pumpio_dopost(App $a, $client, $uid, $self, $post, $own_id, $threadcomp
                        $reply->cc = $post->cc;
                }
 
-               $reply->to = $post->to;
+               if (isset($post->to)) {
+                       $reply->to = $post->to;
+               }
+
                $reply->object = new stdClass;
                $reply->object->objectType = $post->object->inReplyTo->objectType;
                $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;
                }
 
+               if (isset($post->object->created)) {
+                       $created = DateTimeFormat::utc($post->object->created);
+               } else {
+                       $created = '';
+               }
+
                $postarray['body'] = share_header($share_author, $post->object->author->url,
                                                $post->object->author->image->url, "",
-                                               DateTimeFormat::utc($post->object->created),
-                                               $post->links->self->href).
+                                               $created, $post->links->self->href).
                                        $postarray['body']."[/share]";
        }
 
index 63579af861c238117a0a56160f18ef5ab18043f1..bd7800d8684fd0aba2bc2bd01122890116ef8fc2 100644 (file)
@@ -1441,7 +1441,7 @@ function statusnet_convertmsg(App $a, $body, $no_tags = false)
 
                                $tempfile = tempnam(get_temppath(), "cache");
                                file_put_contents($tempfile, $img_str);
-                               $mime = image_type_to_mime_type(exif_imagetype($tempfile));
+                               $mime = mime_content_type($tempfile);
                                unlink($tempfile);
 
                                if (substr($mime, 0, 6) == "image/") {
index b9b3d08ecd36e083727c7a433a94b4230710c158..74828a842941b15f9300bb2d99a1fd643c40e37b 100644 (file)
@@ -1724,7 +1724,7 @@ function twitter_fetchhometimeline(App $a, $uid)
 
                        $postarray = twitter_createpost($a, $uid, $post, $self, false, false, false);
 
-                       if (trim($postarray['body']) == "") {
+                       if (empty($postarray['body'])) {
                                continue;
                        }