]> git.mxchange.org Git - friendica-addons.git/commitdiff
Rename selectOne to selectFirst
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 10 Jan 2018 13:37:11 +0000 (08:37 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Wed, 10 Jan 2018 13:37:11 +0000 (08:37 -0500)
buffer/buffer.php
diaspora/diaspora.php
ifttt/ifttt.php
libertree/libertree.php
pumpio/pumpio.php
statusnet/statusnet.php
tumblr/tumblr.php
twitter/twitter.php
windowsphonepush/windowsphonepush.php
wppost/wppost.php

index a85e843a8bb0afcfc15ce5e5aabde9c041f82fe1..932789da5704117b5fb6005b265338ef51fb269b 100644 (file)
@@ -253,7 +253,7 @@ function buffer_send(App $a, &$b)
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }
index 6f54f4422c7319a21b0214e562115b4b5019ae47..db4cc46e9d55df9d52c088dda6302bf626661e8d 100644 (file)
@@ -289,7 +289,7 @@ function diaspora_send(&$a,&$b) {
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }
index ad7a367b80789168b06b1fb011630fec6bede601..199aace430630b53d3626d6fc0f0c556cc236cf1 100644 (file)
@@ -97,7 +97,7 @@ function ifttt_post(App $a)
 
        $nickname = $a->argv[1];
 
-       $user = dba::selectOne('user', ['uid'], ['nickname' => $nickname]);
+       $user = dba::selectFirst('user', ['uid'], ['nickname' => $nickname]);
        if (!DBM::is_result($user)) {
                logger('User ' . $nickname . ' not found.', LOGGER_DEBUG);
                return;
index c421d07666290fbf77b5628a8e8904656ce103f4..f5a157ec84b32f350f55b1451b57b8020b474c42 100644 (file)
@@ -169,7 +169,7 @@ function libertree_send(&$a,&$b) {
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }
index af93218022e7979aa0e481b1e16c9922d8519669..3f6f8a87040da7da5f5e39b42b3619d4c19f3fb3 100644 (file)
@@ -419,7 +419,7 @@ function pumpio_send(&$a,&$b) {
 
                // Dont't post if the post doesn't belong to us.
                // This is a check for forum postings
-               $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+               $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
                if ($b['contact-id'] != $self['id']) {
                        return;
                }
index 084b233d1de679e85d0a705b156aa11d15e3b763..34bbf20cc6d08a3eb8703f1439fd170b1ce84388 100644 (file)
@@ -582,7 +582,7 @@ function statusnet_post_hook(App $a, &$b)
 
                // Dont't post if the post doesn't belong to us.
                // This is a check for forum postings
-               $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+               $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
                if ($b['contact-id'] != $self['id']) {
                        return;
                }
index c255f5a42a8089f5a4531274634af9cf356ccb33..78c12a5f64d0936ad635573d2dacb111aba87342 100644 (file)
@@ -330,7 +330,7 @@ function tumblr_send(&$a,&$b) {
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }
index e501a3442882085c3b6c15b052474874266bbc74..ccfdeb1fbf9cf04d458b167e9ae2e890c2f51a98 100644 (file)
@@ -468,7 +468,7 @@ function twitter_post_hook(App $a, &$b)
 
                // Dont't post if the post doesn't belong to us.
                // This is a check for forum postings
-               $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+               $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
                if ($b['contact-id'] != $self['id']) {
                        return;
                }
index c9d58bd7f353106ff085ad830f08f4a214359d51..ca615205f081a7dc0d967c2fd7a1ac15ac5f053e 100644 (file)
@@ -458,7 +458,7 @@ function windowsphonepush_login(App $a)
        $user_id = User::authenticate($_SERVER['PHP_AUTH_USER'], trim($_SERVER['PHP_AUTH_PW']));
 
        if ($user_id) {
-               $record = dba::selectOne('user', [], ['uid' => $user_id]);
+               $record = dba::selectFirst('user', [], ['uid' => $user_id]);
        } else {
                logger('API_login failure: ' . print_r($_SERVER, true), LOGGER_DEBUG);
                header('WWW-Authenticate: Basic realm="Friendica"');
index 96e95979d34ebc7e7f14aab68e71f39d60742312..323fcef0caa805f8281cf5470904edfbcd231fca 100644 (file)
@@ -205,7 +205,7 @@ function wppost_send(&$a,&$b) {
 
        // Dont't post if the post doesn't belong to us.
        // This is a check for forum postings
-       $self = dba::selectOne('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
+       $self = dba::selectFirst('contact', ['id'], ['uid' => $b['uid'], 'self' => true]);
        if ($b['contact-id'] != $self['id']) {
                return;
        }