From 66cd00791dd49e7dde07e945c2e0b93e398d366f Mon Sep 17 00:00:00 2001 From: stefanodvx <69367859+stefanodvx@users.noreply.github.com> Date: Mon, 14 Apr 2025 23:54:08 +0200 Subject: [PATCH] Update util.go --- ext/twitter/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/twitter/util.go b/ext/twitter/util.go index f99df0c..8dffd18 100644 --- a/ext/twitter/util.go +++ b/ext/twitter/util.go @@ -136,7 +136,7 @@ func extractResolution(url string) (int64, int64) { func FindTweetData(resp *APIResponse, tweetID string) (*Tweet, error) { instructions := resp.Data.ThreadedConversationWithInjectionsV2.Instructions if len(instructions) == 0 { - return nil, fmt.Errorf("nessuna istruzione trovata nella risposta") + return nil, fmt.Errorf("tweet data missing") } entries := instructions[0].Entries @@ -154,9 +154,9 @@ func FindTweetData(resp *APIResponse, tweetID string) (*Tweet, error) { return result.Legacy, nil } - return nil, fmt.Errorf("struttura del tweet non valida") + return nil, fmt.Errorf("invalid tweet data") } } - return nil, fmt.Errorf("tweet non trovato nella risposta") + return nil, fmt.Errorf("tweet not found") }