1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 15:05:32 +02:00
This commit is contained in:
syuilo
2019-10-25 16:13:37 +09:00
parent 795b56f8ab
commit c9bf99fa66

View File

@@ -48,7 +48,10 @@ export const meta = {
export default define(meta, async (ps, me) => {
const type = await detectUrlMine(ps.url);
const exists = await Emojis.findOne({ name: ps.name });
const exists = await Emojis.findOne({
name: ps.name,
host: null
});
if (exists != null) throw new ApiError(meta.errors.emojiAlredyExists);