]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Merge pull request #12920 from annando/issue-12701
[friendica.git] / src / Model / Item.php
index 78275c8356f147350e9be19699e975841077d148..5ef488b9777109309915cbe49591781187544663 100644 (file)
@@ -587,7 +587,7 @@ class Item
        public static function isValid(array $item): bool
        {
                // When there is no content then we don't post it
-               if (($item['body'] . $item['title'] == '') && empty($item['quote-uri-id']) && (empty($item['uri-id']) || !Post\Media::existsByURIId($item['uri-id']))) {
+               if (($item['body'] . $item['title'] == '') && empty($item['quote-uri-id']) && empty($item['attachments']) && (empty($item['uri-id']) || !Post\Media::existsByURIId($item['uri-id']))) {
                        Logger::notice('No body, no title.');
                        return false;
                }