mirror of
https://github.com/friendica/friendica
synced 2024-11-18 06:23:41 +00:00
Fix posting/editing empty text image posts through Mastodon API
This commit is contained in:
parent
d886a53af0
commit
4366737eb8
1 changed files with 1 additions and 1 deletions
|
@ -589,7 +589,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue