mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Avoid duplicated attachments / unwanted attachments
This commit is contained in:
parent
83de8fa891
commit
f683f791ee
3 changed files with 29 additions and 34 deletions
|
@ -2871,7 +2871,8 @@ class Item
|
|||
$found = true;
|
||||
}
|
||||
}
|
||||
if (!$found) {
|
||||
// @todo Judge between the links to use the one with most information
|
||||
if (!$found && (empty($attachment) || empty($attachment['name']) || empty($attachment['description']))) {
|
||||
$attachment = $link;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue