refactor: fix type

This commit is contained in:
syuilo
2022-04-17 13:14:29 +09:00
parent e0a4864bea
commit ddd655c0c1
3 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ import { getInstanceActor } from '@/services/instance-actor.js';
// to anonymise reporters, the reporting actor must be a system user
// object has to be a uri or array of uris
export const renderFlag = (user: ILocalUser, object: [string], content: string): IActivity => {
export const renderFlag = (user: ILocalUser, object: [string], content: string) => {
return {
type: 'Flag',
actor: `${config.url}/users/${user.id}`,