1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00
This commit is contained in:
Pierre HUBERT 2020-04-29 16:50:27 +02:00
parent 550b932919
commit 4282346881
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ export class SettingsController {
* @param h Request handler * @param h Request handler
*/ */
public static async UploadCustomEmoji(h: RequestHandler) { public static async UploadCustomEmoji(h: RequestHandler) {
const shortcut = h.postEmojiShorcut("shortcut"); const shortcut = h.postEmojiShortcut("shortcut");
// Check if the user has already a shortcut with the same name // Check if the user has already a shortcut with the same name
if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut)) if(await CustomEmojisHelper.HasUserSimilarShorcut(h.getUserId(), shortcut))

View File

@ -414,7 +414,7 @@ export abstract class BaseRequestsHandler implements AbstractUserConnectionConta
* *
* @param name The name of the POST field containing the id of the emoji * @param name The name of the POST field containing the id of the emoji
*/ */
public postEmojiShorcut(name: string) : string { public postEmojiShortcut(name: string) : string {
const emojiShorcut = this.postString(name); const emojiShorcut = this.postString(name);
if(!checkEmojiCode(emojiShorcut)) if(!checkEmojiCode(emojiShorcut))