forked from mirror/misskey
cleanup(ApNoteService.ts
): deadcode
This commit is contained in:
parent
1246382de4
commit
b203dab852
@ -74,10 +74,6 @@ export class ApNoteService {
|
|||||||
public validateNote(object: IObject, uri: string): Error | null {
|
public validateNote(object: IObject, uri: string): Error | null {
|
||||||
const expectHost = this.utilityService.extractDbHost(uri);
|
const expectHost = this.utilityService.extractDbHost(uri);
|
||||||
|
|
||||||
if (object == null) {
|
|
||||||
return new Error('invalid Note: object is null');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!validPost.includes(getApType(object))) {
|
if (!validPost.includes(getApType(object))) {
|
||||||
return new Error(`invalid Note: invalid object type ${getApType(object)}`);
|
return new Error(`invalid Note: invalid object type ${getApType(object)}`);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user