Skip to content

Commit

Permalink
refactor: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 13, 2023
1 parent 1b21bad commit e8d4f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/activitypub/ApRendererService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class ApRendererService {
// to anonymise reporters, the reporting actor must be a system user
// object has to be a uri or array of uris
@bindThis
public renderFlag(user: LocalUser, object: IObject, content: string): IFlag {
public renderFlag(user: LocalUser, object: IObject | string | string[], content: string): IFlag {
return {
type: 'Flag',
actor: `${this.config.url}/users/${user.id}`,
Expand Down

0 comments on commit e8d4f3e

Please sign in to comment.