id) ->whereNotNull('uri') ->chunkById(200, function ($replies) { foreach ($replies as $reply) { RemoteStatusDelete::dispatch($reply)->onQueue('delete'); } }); // Local replies are a local user's content and are not ours to // remove because someone else deleted the post above them. They are // detached, as before. Feeds and profile grids only list media // types, so a text comment does not surface as a post. A reply that // carries media (possible through the Mastodon API) does end up on // its author's own profile, which is acceptable for their own media. Status::whereInReplyToId($parent->id) ->whereNull('uri') ->update(['in_reply_to_id' => null]); } }