Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Jun 10, 2020
1 parent 90590ae commit 33aed79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/app/admin/views/emoji.vue
Expand Up @@ -84,7 +84,7 @@
<img :src="emoji.url" :alt="emoji.name" style="width: 32px;"/>
</div>
<div class="detail">
<div>{{ `${emoji.name}@${emoji.host}` }}</div>
<div style="margin-bottom: 0.5em;">{{ `${emoji.name}@${emoji.host}` }}</div>
<ui-button @click="copy(emoji.id)">{{ $t('copy') }}</ui-button>
</div>
</section>
Expand Down
3 changes: 2 additions & 1 deletion src/server/api/endpoints/admin/emoji/copy.ts
Expand Up @@ -39,7 +39,8 @@ export default define(meta, async (ps, me) => {
}

const n = await Emoji.findOne({
name: emoji.name
name: emoji.name,
host: null,
});

if (n) {
Expand Down

0 comments on commit 33aed79

Please sign in to comment.