mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 08:15:13 +00:00
reverse logic
This commit is contained in:
parent
a4d68f9fb1
commit
435ac66063
1 changed files with 5 additions and 5 deletions
|
@ -2417,11 +2417,11 @@ class Activity {
|
|||
$s['title'] = (($response_activity) ? EMPTY_STR : self::bb_content($content,'name'));
|
||||
$s['summary'] = self::bb_content($content,'summary');
|
||||
|
||||
if (array_key_exists('mimetype',$s) && in_array($s['mimetype'], [ 'text/bbcode', 'text/x-multicode' ])) {
|
||||
$s['body'] = ((self::bb_content($content,'bbcode') && (! $response_activity)) ? self::bb_content($content,'bbcode') : self::bb_content($content,'content'));
|
||||
if (array_key_exists('mimetype',$s) && (! in_array($s['mimetype'], [ 'text/bbcode', 'text/x-multicode' ]))) {
|
||||
$s['body'] = $content['content'];
|
||||
}
|
||||
else {
|
||||
$s['body'] = $content['content'];
|
||||
$s['body'] = ((self::bb_content($content,'bbcode') && (! $response_activity)) ? self::bb_content($content,'bbcode') : self::bb_content($content,'content'));
|
||||
}
|
||||
|
||||
|
||||
|
@ -2803,7 +2803,7 @@ class Activity {
|
|||
|
||||
static function rewrite_mentions_sub(&$s, $pref, &$obj = null) {
|
||||
|
||||
if ($s['term']) {
|
||||
if (isset($s['term']) && is_array($s['term'])) {
|
||||
foreach ($s['term'] as $tag) {
|
||||
$txt = EMPTY_STR;
|
||||
if (intval($tag['ttype']) === TERM_MENTION) {
|
||||
|
|
Loading…
Reference in a new issue