mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 05:55:12 +00:00
use duck-typing instead of type field
This commit is contained in:
parent
13c69cb8ad
commit
ccdf069cdd
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ export class ApNoteService {
|
|||
|
||||
const limit = promiseLimit<MiDriveFile>(2);
|
||||
const filePromises = attachments
|
||||
.filter(attach => toArray(attach.type).includes('Image'))
|
||||
.filter(attach => typeof(attach.url) === 'string')
|
||||
.map(attach => (
|
||||
limit(() => this.apImageService.resolveImage(actor, {
|
||||
...attach,
|
||||
|
|
Loading…
Reference in a new issue