Stir fish, mashed potatoes, onion, parsley, egg, salt, and pepper together in a bowl. Shape into six 1-inch thick patties, then dust with flour.
Pour oil into a large skillet and set over medium-high heat. Cook fish cakes for about 8 minutes, flipping midway through cooking time, just until both sides are lightly browned. Serve.