refactored fetch_reposts method