mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 19:03:47 +00:00
SN/T: typo
This commit is contained in:
parent
6da7c5c181
commit
949fb2f48b
2 changed files with 2 additions and 2 deletions
|
@ -437,7 +437,7 @@ function statusnet_post_hook(&$a,&$b) {
|
|||
$tmp = $b['title'] . ' : '. $b['body'];
|
||||
// $tmp = substr($tmp, 0, 4*$max_char);
|
||||
} else {
|
||||
$tmp = $b['body'] // substr($b['body'], 0, 3*$max_char);
|
||||
$tmp = $b['body']; // substr($b['body'], 0, 3*$max_char);
|
||||
}
|
||||
// if [url=bla][img]blub.png[/img][/url] get blub.png
|
||||
$tmp = preg_replace( '/\[url\=(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)\]\[img\](\\w+.*?)\\[\\/img\]\\[\\/url\]/i', '$2', $tmp);
|
||||
|
|
|
@ -303,7 +303,7 @@ function twitter_post_hook(&$a,&$b) {
|
|||
$tmp = $b['title'] . ' : '. $b['body'];
|
||||
// $tmp = substr($tmp, 0, 4*$max_char);
|
||||
} else {
|
||||
$tmp = $b['body'] // substr($b['body'], 0, 3*$max_char);
|
||||
$tmp = $b['body']; // substr($b['body'], 0, 3*$max_char);
|
||||
}
|
||||
// if [url=bla][img]blub.png[/img][/url] get blub.png
|
||||
$tmp = preg_replace( '/\[url\=(https?\:\/\/[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,]+)\]\[img\](\\w+.*?)\\[\\/img\]\\[\\/url\]/i', '$2', $tmp);
|
||||
|
|
Loading…
Reference in a new issue