API: Supporting twidere, better supporting of the network field in the item table

Small fix: The API is now working with twidere.

Additionally: The network field in the item table wasn't filled at every time with the right value. This is now fixed. Additionally you can now use it in templates.