use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Photo;
+use Friendica\Model\Profile;
use Friendica\Network\HTTPException\NotFoundException;
define("CATAVATAR_SIZE", 256);
Contact::updateSelfFromUserID(local_user(), true);
// Update global directory in background
- $url = DI::baseUrl()->get() . '/profile/' . $a->user['nickname'];
- if ($url && strlen(DI::config()->get('system', 'directory'))) {
- Worker::add(PRIORITY_LOW, 'Directory', $url);
- }
-
- Worker::add(PRIORITY_LOW, 'ProfileUpdate', local_user());
+ Profile::publishUpdate(local_user());
info(DI::l10n()->t('Meow!'));
return;