mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Merge pull request #13978 from annando/issue-13972
Default behaviour for adding media types
This commit is contained in:
commit
57187f26ae
1 changed files with 2 additions and 0 deletions
|
@ -912,6 +912,8 @@ class Media
|
||||||
$body .= "\n[audio]" . $media['url'] . "[/audio]\n";
|
$body .= "\n[audio]" . $media['url'] . "[/audio]\n";
|
||||||
} elseif ($media['type'] == self::VIDEO) {
|
} elseif ($media['type'] == self::VIDEO) {
|
||||||
$body .= "\n[video]" . $media['url'] . "[/video]\n";
|
$body .= "\n[video]" . $media['url'] . "[/video]\n";
|
||||||
|
} else {
|
||||||
|
$body .= "\n[url]" . $media['url'] . "[/url]\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue