- if (in_array(defaults($arr, 'network', NETWORK_PHANTOM),
- [NETWORK_DFRN, NETWORK_DIASPORA, NETWORK_OSTATUS, NETWORK_TWITTER]) && !empty($arr['uri'])) {
+ if (in_array(defaults($arr, 'network', Protocol::PHANTOM),
+ [Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS, Protocol::TWITTER]) && !empty($arr['uri'])) {