Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • web-et-numerique/factory/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server
1 result
Show changes
Commits on Source (7)
......@@ -107,7 +107,7 @@ services:
- db-ghost:/var/lib/mysql
es01:
image: elasticsearch:7.17.25
image: elasticsearch:8.17.3
restart: unless-stopped
container_name: resin-es
environment:
......
......@@ -77,6 +77,8 @@ describe('AuthService', () => {
username: 'pauline.dupont@mii.com',
name: 'DUPONT',
surname: 'Pauline',
job: undefined,
employer: undefined,
avatar: undefined,
});
});
......
......@@ -2,7 +2,6 @@ import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
import { DateTime } from 'luxon';
import { IUser } from '../users/interfaces/user.interface';
import { User } from '../users/schemas/user.schema';
import { UsersService } from '../users/services/users.service';
import { LoginDto } from './login-dto';
......@@ -35,6 +34,8 @@ export class AuthService {
username: user.email,
name: user.name,
surname: user.surname,
job: user.job,
employer: user.employer,
avatar: user.avatar,
...token,
};
......
import { Injectable } from '@nestjs/common';
import { Injectable, Logger } from '@nestjs/common';
import * as GhostAdminAPI from '@tryghost/admin-api';
import * as _ from 'lodash';
import { ConfigurationService } from '../configuration/configuration.service';
......@@ -76,6 +76,10 @@ export class PostsService {
// Handle image display. Rewrite image URL to fit ghost infra issue.
postData = rewriteGhostImgUrl(this.configService, postData);
// Accessibility : replace "Download" by "Télécharger"
postData.html = postData.html.replace('title="Download"', 'title="Télécharger"');
return postData;
}
}