Rename selectOne to selectFirst
This commit is contained in:
parent
3e141d268e
commit
a66a4959f5
10 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"');
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue