From ca4c76ce413d52660c4019f4a693ed732ecaed58 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 16 Jun 2021 05:26:10 +0000 Subject: [PATCH] CatAvatar: Use new function to perform a profile update --- catavatar/catavatar.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/catavatar/catavatar.php b/catavatar/catavatar.php index 7c5b5595..47ff6698 100644 --- a/catavatar/catavatar.php +++ b/catavatar/catavatar.php @@ -15,6 +15,7 @@ use Friendica\Database\DBA; use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\Photo; +use Friendica\Model\Profile; use Friendica\Network\HTTPException\NotFoundException; define("CATAVATAR_SIZE", 256); @@ -98,12 +99,7 @@ function catavatar_addon_settings_post(App $a, &$s) 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; -- 2.39.5