]> git.mxchange.org Git - friendica.git/commitdiff
Preparation for an bidirectional app.net connector
authorMichael Vogel <icarus@dabo.de>
Wed, 4 Jun 2014 19:25:31 +0000 (21:25 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 4 Jun 2014 19:25:31 +0000 (21:25 +0200)
boot.php
mod/item.php

index dbd5c7640e3f6dc50c52cc9596f53c9772f7bc78..bcecdaa6b157a1ab8f59811381e5e7cacf07eac8 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -143,6 +143,7 @@ define ( 'NETWORK_PUMPIO',           'pump');    // pump.io
 define ( 'NETWORK_TWITTER',          'twit');    // Twitter
 define ( 'NETWORK_DIASPORA2',        'dspc');    // Diaspora connector
 define ( 'NETWORK_STATUSNET',        'stac');    // Statusnet connector
+define ( 'NETWORK_APPNET',           'apdn');    // app.net
 
 define ( 'NETWORK_PHANTOM',          'unkn');    // Place holder
 
@@ -169,6 +170,7 @@ $netgroup_ids = array(
        NETWORK_TWITTER  => (-14),
        NETWORK_DIASPORA2 => (-15),
        NETWORK_STATUSNET => (-16),
+       NETWORK_APPNET => (-17),
 
        NETWORK_PHANTOM  => (-127),
 );
index 08145d5a0f613fd9f5b2e9a39a39dc011e7e8463..20f7f2957e9643fcd69b8bd0d1e7482b7a173873 100644 (file)
@@ -1127,7 +1127,8 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
                        if(count($r)) {
                                $profile = $r[0]['url'];
                                //set newname to nick, find alias
-                               if(($r[0]['network'] === NETWORK_OSTATUS) OR ($r[0]['network'] === NETWORK_TWITTER) OR ($r[0]['network'] === NETWORK_STATUSNET)) {
+                               if(($r[0]['network'] === NETWORK_OSTATUS) OR ($r[0]['network'] === NETWORK_TWITTER)
+                                       OR ($r[0]['network'] === NETWORK_STATUSNET) OR ($r[0]['network'] === NETWORK_APPNET)) {
                                        $newname = $r[0]['nick'];
                                        $stat = true;
                                        if($r[0]['alias'])