ivory
ivory copied to clipboard
Check IP address format and convert to string if needed
The format of IP addresses for the Mastodon API changed in v3.5 from a string, to an object with a few attributes, including an 'ip' attribute. This handles the conversion to a string if needed (it should still work for any sites that haven't upgraded).