mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 03:23:08 +02:00
refactor: fix types
This commit is contained in:
parent
1b21bad202
commit
e8d4f3eac3
1 changed files with 1 additions and 1 deletions
|
@ -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}`,
|
||||||
|
|
Loading…
Reference in a new issue