Skip to content
Snippets Groups Projects
Commit c9bf99fa authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 795b56f8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment