]> git.mxchange.org Git - friendica.git/blobdiff - mod/cal.php
Merge pull request #10479 from MrPetovan/task/9378-merge-share-template
[friendica.git] / mod / cal.php
index c867582a7f96e6bcbbc12a677cb5334c6e4f63ff..e1cf91aa685dd4cceeca4a36140e860777f00ce1 100644 (file)
@@ -34,7 +34,7 @@ use Friendica\DI;
 use Friendica\Model\Contact;
 use Friendica\Model\Event;
 use Friendica\Model\Item;
-use Friendica\Model\Profile;
+use Friendica\Model\User;
 use Friendica\Module\BaseProfile;
 use Friendica\Network\HTTPException;
 use Friendica\Util\DateTimeFormat;
@@ -67,7 +67,7 @@ function cal_init(App $a)
                return;
        }
 
-       $a->profile = Profile::getByNickname($nick, $a->profile_uid);
+       $a->profile = User::getOwnerDataByNick($nick);
        if (empty($a->profile)) {
                throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
        }