MCPcopy Index your code
hub / github.com/Preloading/TwitterAPIBridge / TwitterMsgIdToBluesky

Function TwitterMsgIdToBluesky

bridge/bridge.go:606–614  ·  view source on GitHub ↗

This is here soley because we have to use psudo ids for retweets.

(id *int64)

Source from the content-addressed store, hash-verified

604
605// This is here soley because we have to use psudo ids for retweets.
606func TwitterMsgIdToBluesky(id *int64) (*string, *time.Time, *string, error) {
607 // Get the letter ID from the database
608 uri, createdAt, retweetUserId, err := db_controller.GetTwitterIDFromDatabase(id)
609 if err != nil {
610 return nil, nil, nil, err
611 }
612
613 return uri, createdAt, retweetUserId, nil
614}
615
616// FormatTime converts Go's time.Time into the format "Wed Sep 01 00:00:00 +0000 2021"
617func TwitterTimeConverter(t time.Time) string {

Callers 12

convert_timelineFunction · 0.92
RelatedResultsFunction · 0.92
GetStatusFromIdFunction · 0.92
TweetInfoFunction · 0.92
mentions_timelineFunction · 0.92
InternalSearchFunction · 0.92
status_updateFunction · 0.92
status_update_with_mediaFunction · 0.92
retweetFunction · 0.92
favouriteFunction · 0.92
UnfavouriteFunction · 0.92
DeleteTweetFunction · 0.92

Calls 1

GetTwitterIDFromDatabaseFunction · 0.92

Tested by

no test coverage detected