From f0fcef68e0a8972f0d8bc9a70ec8b4c9609a57d9 Mon Sep 17 00:00:00 2001 From: Alessio Date: Fri, 23 Jun 2023 16:02:38 -0300 Subject: [PATCH] Fix lint error --- pkg/scraper/api_types_dms.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkg/scraper/api_types_dms.go b/pkg/scraper/api_types_dms.go index c962da0..6e76e54 100644 --- a/pkg/scraper/api_types_dms.go +++ b/pkg/scraper/api_types_dms.go @@ -2,6 +2,7 @@ package scraper import ( "net/url" + "strings" ) type APIDMReaction struct { @@ -119,7 +120,20 @@ func (api *API) GetDMInbox() (APIDMResponse, error) { query.Add("include_ext_media_color", "true") query.Add("supports_reactions", "true") query.Add("include_ext_edit_control", "true") - query.Add("ext", "mediaColor,altText,mediaStats,highlightedLabel,hasNftAvatar,voiceInfo,birdwatchPivot,enrichments,superFollowMetadata,unmentionInfo,editControl,vibe") + query.Add("ext", strings.Join([]string{ + "mediaColor", + "altText", + "mediaStats", + "highlightedLabel", + "hasNftAvatar", + "voiceInfo", + "birdwatchPivot", + "enrichments", + "superFollowMetadata", + "unmentionInfo", + "editControl", + "vibe", + }, ",")) url.RawQuery = query.Encode() var result APIDMResponse