mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Use constants for the BBCode modes
This commit is contained in:
parent
7b8178e046
commit
0cf517ad76
9 changed files with 48 additions and 52 deletions
|
@ -951,7 +951,7 @@ class DFRN
|
|||
$htmlbody = "[b]" . $item['title'] . "[/b]\n\n" . $htmlbody;
|
||||
}
|
||||
|
||||
$htmlbody = BBCode::convert($htmlbody, false, 7);
|
||||
$htmlbody = BBCode::convert($htmlbody, false, BBCode::OSTATUS);
|
||||
}
|
||||
|
||||
$author = self::addEntryAuthor($doc, "author", $item["author-link"], $item);
|
||||
|
@ -2428,7 +2428,8 @@ class DFRN
|
|||
if (($term != "") && ($scheme != "")) {
|
||||
$parts = explode(":", $scheme);
|
||||
if ((count($parts) >= 4) && (array_shift($parts) == "X-DFRN")) {
|
||||
$termurl = implode(":", $parts);
|
||||
$termurl = array_pop($parts);
|
||||
$termurl = array_pop($parts) . $termurl;
|
||||
Tag::store($item['uri-id'], Tag::IMPLICIT_MENTION, $term, $termurl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue