#sknebelI'd split that up in multiple lines, maybe even local functions for sure. Also, not sure what role that plays exactly, but salmentions need checks if data actually changed, and you can't entirely rely on the the main post on a page being the first mf2 item on the page