Skip to content

Commit

Permalink
Fix preview_url in attachment to optional value
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Dec 13, 2022
1 parent 6c29e3d commit 1fbaf96
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion megalodon/src/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Entity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down
2 changes: 1 addition & 1 deletion megalodon/src/mastodon/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace MastodonEntity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down
2 changes: 1 addition & 1 deletion megalodon/src/pleroma/entities/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace PleromaEntity {
type: 'unknown' | 'image' | 'gifv' | 'video' | 'audio'
url: string
remote_url: string | null
preview_url: string
preview_url: string | null
text_url: string | null
meta: object | null
description: string | null
Expand Down

0 comments on commit 1fbaf96

Please sign in to comment.