mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Updated addons for new tag handling
This commit is contained in:
parent
9b57f661b0
commit
471bcc1b63
4 changed files with 8 additions and 35 deletions
|
@ -211,18 +211,6 @@ function libertree_send(&$a,&$b) {
|
|||
$ltree_source .= " (".$b['app'].")";
|
||||
|
||||
if($ltree_url && $ltree_api_token && $ltree_blog && $ltree_source) {
|
||||
$tag_arr = [];
|
||||
$tags = '';
|
||||
$x = preg_match_all('/\#\[(.*?)\](.*?)\[/',$b['tag'],$matches,PREG_SET_ORDER);
|
||||
|
||||
if($x) {
|
||||
foreach($matches as $mtch) {
|
||||
$tag_arr[] = $mtch[2];
|
||||
}
|
||||
}
|
||||
if(count($tag_arr))
|
||||
$tags = implode(',',$tag_arr);
|
||||
|
||||
$title = $b['title'];
|
||||
$body = $b['body'];
|
||||
// Insert a newline before and after a quote
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue