mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Rewrite: (#680)
- replace usage of deprecated NETWORK_* with Protocol::*
This commit is contained in:
parent
9a48452e09
commit
c8371bc521
8 changed files with 55 additions and 47 deletions
|
@ -13,6 +13,7 @@ use Friendica\Core\Addon;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Object\Image;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Util\Network;
|
||||
|
@ -173,10 +174,10 @@ function fromgplus_post($a, $uid, $source, $body, $location, $coord, $id) {
|
|||
|
||||
$_REQUEST['profile_uid'] = $uid;
|
||||
$_REQUEST['source'] = $source;
|
||||
$_REQUEST['extid'] = NETWORK_GPLUS;
|
||||
$_REQUEST['extid'] = Protocol::GPLUS;
|
||||
|
||||
if (isset($id)) {
|
||||
$_REQUEST['message_id'] = Item::newURI($uid, NETWORK_GPLUS.':'.$id);
|
||||
$_REQUEST['message_id'] = Item::newURI($uid, Protocol::GPLUS.':'.$id);
|
||||
}
|
||||
|
||||
// $_REQUEST['verb']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue