mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 08:18:45 +09:00
fix(server): 自分のノートをお気に入りに登録しても実績解除される問題を修正
This commit is contained in:
parent
b51a8c3f82
commit
1139632f95
@ -5,8 +5,8 @@ import { IdService } from '@/core/IdService.js';
|
||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||
import { GetterService } from '@/server/api/GetterService.js';
|
||||
import { DI } from '@/di-symbols.js';
|
||||
import { ApiError } from '../../../error.js';
|
||||
import { AchievementService } from '@/core/AchievementService.js';
|
||||
import { ApiError } from '../../../error.js';
|
||||
|
||||
export const meta = {
|
||||
tags: ['notes', 'favorites'],
|
||||
@ -79,7 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
userId: me.id,
|
||||
});
|
||||
|
||||
if (note.userHost == null) {
|
||||
if (note.userHost == null && note.userId !== me.id) {
|
||||
this.achievementService.create(note.userId, 'myNoteFavorited1');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user