if there is oembed data for a file/link, consider that link to have an attachment

This commit is contained in:
Craig Andrews 2010-03-26 18:13:45 -04:00
parent c9a3916c34
commit 1bf27de9b9

View File

@ -803,7 +803,7 @@ function common_linkify($url) {
}
if (!empty($f)) {
if ($f->getEnclosure()) {
if ($f->getEnclosure() || File_oembed::staticGet('file_id',$f->id)) {
$is_attachment = true;
$attachment_id = $f->id;