mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
add reply and quote counts
This commit is contained in:
@@ -76,6 +76,8 @@ func (t *Twitter) Timeline(ctx context.Context, req *pb.TimelineRequest, rsp *pb
|
||||
CreatedAt: tweet.CreatedAt,
|
||||
FavouritedCount: int64(tweet.FavoriteCount),
|
||||
RetweetedCount: int64(tweet.RetweetCount),
|
||||
ReplyCount: int64(tweet.ReplyCount),
|
||||
QuoteCount: int64(tweet.QuoteCount),
|
||||
Username: tweet.User.ScreenName,
|
||||
})
|
||||
}
|
||||
@@ -108,6 +110,8 @@ func (t *Twitter) Search(ctx context.Context, req *pb.SearchRequest, rsp *pb.Sea
|
||||
CreatedAt: tweet.CreatedAt,
|
||||
FavouritedCount: int64(tweet.FavoriteCount),
|
||||
RetweetedCount: int64(tweet.RetweetCount),
|
||||
ReplyCount: int64(tweet.ReplyCount),
|
||||
QuoteCount: int64(tweet.QuoteCount),
|
||||
Username: tweet.User.ScreenName,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user