forked from GNUsocial/gnu-social
Avoid marking files as attachments that are not locally uploaded, unless they're really oembedable. HTML-y things now excluded properly.
This commit is contained in:
@@ -877,7 +877,7 @@ function common_linkify($url) {
|
||||
}
|
||||
|
||||
if (!empty($f)) {
|
||||
if ($f->getEnclosure() || File_oembed::staticGet('file_id',$f->id)) {
|
||||
if ($f->getEnclosure()) {
|
||||
$is_attachment = true;
|
||||
$attachment_id = $f->id;
|
||||
|
||||
|
Reference in New Issue
Block a user