]> git.mxchange.org Git - friendica-addons.git/commitdiff
[various] Rename PageInfo::appendToBody to searchAndAppendToBody
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 18 Jul 2020 15:38:11 +0000 (11:38 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 18 Jul 2020 15:38:11 +0000 (11:38 -0400)
statusnet/statusnet.php
twitter/twitter.php

index f5bb7f42a12d9bc00958684893e0ff944dc5834f..0fd1fd79fc1948dd7f5ba00e3268e8052f110921 100644 (file)
@@ -897,7 +897,7 @@ function statusnet_fetchtimeline(App $a, $uid)
 
                                $_REQUEST["title"] = "";
 
-                               $_REQUEST["body"] = PageInfo::appendToBody($post->text, true);
+                               $_REQUEST["body"] = PageInfo::searchAndAppendToBody($post->text, true);
                                if (is_string($post->place->name)) {
                                        $_REQUEST["location"] = $post->place->name;
                                }
index d374f1c355ad3191fa5ff51f0f4d16557b1c2452..948bb6be6275a577a0639e6b63d77b6a98eb4f78 100644 (file)
@@ -1365,11 +1365,11 @@ function twitter_expand_entities($body, stdClass $status, $picture)
                } elseif ($picture) {
                        $body .= "\n\n[img]" . $picture . "[/img]\n";
                } else {
-                       $body = PageInfo::appendToBody($body);
+                       $body = PageInfo::searchAndAppendToBody($body);
                }
        }
 
-       return ['body' => $body, 'plain' => $plain, 'taglist' => $taglist];
+       return ['body' => $body, 'plain' => trim($plain), 'taglist' => $taglist];
 }
 
 /**