code: def toggle_favourite(self):
          
          status = self.get_selected_status()
          assert status
          app, user = self.app, self.user
          if not app or not user:
              self.footer.draw_message("You must be logged in to favourite", Color.RED)
              return
          status_id = status['id']
          if status['favourited']:
              self.footer.draw_message("Undoing favourite status...", Color.YELLOW)
              api.unfavourite(app, user, status_id)
              self.footer.draw_message("✓ Status unfavourited", Color.GREEN)
          else:
              self.footer.draw_message("Favourite status...", Color.YELLOW)
              api.favourite(app, user, status_id)
              self.footer.draw_message("✓ Status favourited", Color.GREEN)
          status['favourited'] = not status['favourited']
  
          self.right.draw(status)
docs: Favourite or unfavourite selected status.