forked from friendica/friendica-addons
fbpost/gpluspost: New design for shared content
This commit is contained in:
parent
520c2514f2
commit
d3fa9a7b21
|
@ -564,7 +564,7 @@ function fbpost_post_hook(&$a,&$b) {
|
||||||
|
|
||||||
if ($toplevel) {
|
if ($toplevel) {
|
||||||
require_once("include/plaintext.php");
|
require_once("include/plaintext.php");
|
||||||
$msgarr = plaintext($a, $b, 0, false);
|
$msgarr = plaintext($a, $b, 0, false, 9);
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
$link = $msgarr["url"];
|
$link = $msgarr["url"];
|
||||||
$linkname = $msgarr["title"];
|
$linkname = $msgarr["title"];
|
||||||
|
|
|
@ -271,7 +271,7 @@ function gpluspost_send(&$a,&$b) {
|
||||||
$item["body"] = preg_replace("(\[i\](.*?)\[\/i\])ism",'_$1_',$item["body"]);
|
$item["body"] = preg_replace("(\[i\](.*?)\[\/i\])ism",'_$1_',$item["body"]);
|
||||||
$item["body"] = preg_replace("(\[s\](.*?)\[\/s\])ism",'-$1-',$item["body"]);
|
$item["body"] = preg_replace("(\[s\](.*?)\[\/s\])ism",'-$1-',$item["body"]);
|
||||||
|
|
||||||
$data = plaintext($a, $item, 0, false);
|
$data = plaintext($a, $item, 0, false, 9);
|
||||||
|
|
||||||
logger('gpluspost_send: data: '.print_r($data, true), LOGGER_DEBUG);
|
logger('gpluspost_send: data: '.print_r($data, true), LOGGER_DEBUG);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue