Skip to content

Commit

Permalink
バグ修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyatea committed Nov 5, 2024
1 parent ba02555 commit 379621e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/backend/src/core/activitypub/ApInboxService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ export class ApInboxService {
const rules = await this.inboxRuleRepository.find();
for (const rule of rules) {
const result = await this.inboxRuleService.evalCond(activity, actor, rule.condFormula);
console.log('result');
console.log(result);
console.log(rule.action.type);
console.log('result END');
if (result && rule.action.type === 'reject') {
await this.moderationLogService.log(actor, 'inboxRejected', {
activity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
}

if (!isRequest) {
await this.customEmojiService.update(emojiId, {
await this.customEmojiService.update({
id: emojiId,
driveFile,
name: ps.name,
category: ps.category,
Expand Down
12 changes: 10 additions & 2 deletions packages/frontend/src/pages/avatar-decorations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkButton @click="setCategoryBulk">Set Category</MkButton>
<MkButton @click="deletes">Delete</MkButton>
<div class="_gaps">
<MkFolder v-for="avatarDecoration in avatarDecorations" :key="avatarDecoration.id ?? avatarDecoration._id" :defaultOpen="avatarDecoration.id == null">
<MkFolder v-for="avatarDecoration in avatarDecorations" :key="avatarDecoration.id" :defaultOpen="avatarDecoration.id == null">
<template #label>{{ avatarDecoration.name }}</template>
<template #caption>{{ avatarDecoration.description }}</template>

Expand Down Expand Up @@ -59,7 +59,6 @@ import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
import XDecoration from '@/pages/settings/avatar-decoration.decoration.vue';
import MkSwitch from '@/components/MkSwitch.vue';
const avatarDecorations = ref<Misskey.entities.AdminAvatarDecorationsListResponse>([]);
Expand All @@ -68,6 +67,15 @@ const selectItemsId = ref<string[]>([]);
const $i = signinRequired();
async function save(avatarDecoration) {
if (avatarDecoration.id == null) {
await os.apiWithDialog('admin/avatar-decorations/create', avatarDecoration);
load();
} else {
os.apiWithDialog('admin/avatar-decorations/update', avatarDecoration);
}
}
function add() {
avatarDecorations.value.unshift({
_id: Math.random().toString(36),
Expand Down

0 comments on commit 379621e

Please sign in to comment.