id === $GLOBALS["currentUser"]?->id && $user->hasPermission(UserPermissions::EDIT_OWN_USER)) || $GLOBALS["currentUser"]?->hasPermission(UserPermissions::EDIT_OTHER_USER); $isOwnProfile = $user->id === $GLOBALS["currentUser"]?->id; $sIsOwn_your = ""; if ($isOwnProfile) $sIsOwn_your = " your"; $sUserPossessive = ""; if ($isOwnProfile) $sUserPossessive = "Your"; else $sUserPossessive = $user->displayName . "'s"; $dateJoined = DateTime::createFromImmutable($user->created); $dateJoined->setTime(0, 0, 0, 0); ?>