Merge pull request #9044 from annando/avatar-stuff
Some stuff with contact avatars
This commit is contained in:
commit
9923e17aed
6 changed files with 95 additions and 45 deletions
|
@ -49,6 +49,7 @@ use Friendica\Database\DBStructure;
|
|||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Model\Photo;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Model\Storage;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -573,3 +574,9 @@ function pre_update_1358()
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function pre_update_1363()
|
||||
{
|
||||
Photo::delete(["`contact-id` != ? AND NOT `contact-id` IN (SELECT `id` FROM `contact`)", 0]);
|
||||
return Update::SUCCESS;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue