Skip to content

Commit

Permalink
Fixed missing link attachment type in Posts and Comments (#1250)
Browse files Browse the repository at this point in the history
Co-authored-by: Филатов Антон Владимирович <[email protected]>
  • Loading branch information
faint069 and Филатов Антон Владимирович authored Sep 3, 2022
1 parent 3d1c25e commit 603ba94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions VkNet/Model/Attachments/Attachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static Attachment FromJson(VkResponse response)

return type switch
{
"link" => CreateTyped<Link>(response[type]),
"photo" or "posted_photo" => CreateTyped<Photo>(response[type]),
"audio" => CreateTyped<Audio>(response[type]),
"video" => CreateTyped<Video>(response[type]),
Expand Down

0 comments on commit 603ba94

Please sign in to comment.