forked from friendica/friendica-addons
Merge pull request #1029 from annando/pumpio-fix
Pumpio: Minor fixes to avoid notices and editor warning
This commit is contained in:
commit
43e354658d
1 changed files with 4 additions and 5 deletions
|
@ -145,8 +145,7 @@ function pumpio_connect(App $a)
|
||||||
if (($consumer_key == "") || ($consumer_secret == "")) {
|
if (($consumer_key == "") || ($consumer_secret == "")) {
|
||||||
Logger::log("pumpio_connect: ".sprintf("Unable to register the client at the pump.io server '%s'.", $hostname));
|
Logger::log("pumpio_connect: ".sprintf("Unable to register the client at the pump.io server '%s'.", $hostname));
|
||||||
|
|
||||||
$o .= DI::l10n()->t("Unable to register the client at the pump.io server '%s'.", $hostname);
|
return DI::l10n()->t("Unable to register the client at the pump.io server '%s'.", $hostname);
|
||||||
return $o;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The callback URL is the script that gets called after the user authenticates with pumpio
|
// The callback URL is the script that gets called after the user authenticates with pumpio
|
||||||
|
@ -1504,12 +1503,12 @@ function pumpio_fetchallcomments(App $a, $uid, $id)
|
||||||
|
|
||||||
// Fetching the original post
|
// Fetching the original post
|
||||||
$condition = ["`uri` = ? AND `uid` = ? AND `extid` != ''", $id, $uid];
|
$condition = ["`uri` = ? AND `uid` = ? AND `extid` != ''", $id, $uid];
|
||||||
$item = Item::selectFirst(['extid'], $condition);
|
$original = Item::selectFirst(['extid'], $condition);
|
||||||
if (!DBA::isResult($item)) {
|
if (!DBA::isResult($original)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = $item["extid"];
|
$url = $original["extid"];
|
||||||
|
|
||||||
$client = new oauth_client_class;
|
$client = new oauth_client_class;
|
||||||
$client->oauth_version = '1.0a';
|
$client->oauth_version = '1.0a';
|
||||||
|
|
Loading…
Reference in a new issue