Skip to content
Snippets Groups Projects
Commit e8d4f3ea authored by syuilo's avatar syuilo
Browse files

refactor: fix types

parent 1b21bad2
No related branches found
No related tags found
No related merge requests found
...@@ -181,7 +181,7 @@ export class ApRendererService { ...@@ -181,7 +181,7 @@ export class ApRendererService {
// to anonymise reporters, the reporting actor must be a system user // to anonymise reporters, the reporting actor must be a system user
// object has to be a uri or array of uris // object has to be a uri or array of uris
@bindThis @bindThis
public renderFlag(user: LocalUser, object: IObject, content: string): IFlag { public renderFlag(user: LocalUser, object: IObject | string | string[], content: string): IFlag {
return { return {
type: 'Flag', type: 'Flag',
actor: `${this.config.url}/users/${user.id}`, actor: `${this.config.url}/users/${user.id}`,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment