Merge remote-tracking branch 'upstream/master' into 1409-diaspora-repeated-twitter-cleanup
This commit is contained in:
commit
eb592030eb
29 changed files with 113189 additions and 109486 deletions
|
@ -26,6 +26,19 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function api_source() {
|
||||||
|
if (requestdata('source'))
|
||||||
|
return (requestdata('source'));
|
||||||
|
|
||||||
|
// Support for known clients that doesn't send a source name
|
||||||
|
if (strstr($_SERVER['HTTP_USER_AGENT'], "Twidere"))
|
||||||
|
return ("Twidere");
|
||||||
|
|
||||||
|
logger("Unrecognized user-agent ".$_SERVER['HTTP_USER_AGENT'], LOGGER_DEBUG);
|
||||||
|
|
||||||
|
return ("api");
|
||||||
|
}
|
||||||
|
|
||||||
function api_date($str){
|
function api_date($str){
|
||||||
//Wed May 23 06:01:13 +0000 2007
|
//Wed May 23 06:01:13 +0000 2007
|
||||||
return datetime_convert('UTC', 'UTC', $str, "D M d H:i:s +0000 Y" );
|
return datetime_convert('UTC', 'UTC', $str, "D M d H:i:s +0000 Y" );
|
||||||
|
@ -709,8 +722,6 @@
|
||||||
if($parent)
|
if($parent)
|
||||||
$_REQUEST['type'] = 'net-comment';
|
$_REQUEST['type'] = 'net-comment';
|
||||||
else {
|
else {
|
||||||
// logger("api_statuses_update: upload ".print_r($_FILES, true)." ".print_r($_POST, true)." ".print_r($_GET, true), LOGGER_DEBUG);
|
|
||||||
//die("blubb");
|
|
||||||
$_REQUEST['type'] = 'wall';
|
$_REQUEST['type'] = 'wall';
|
||||||
if(x($_FILES,'media')) {
|
if(x($_FILES,'media')) {
|
||||||
// upload the image if we have one
|
// upload the image if we have one
|
||||||
|
@ -726,8 +737,8 @@
|
||||||
|
|
||||||
$_REQUEST['api_source'] = true;
|
$_REQUEST['api_source'] = true;
|
||||||
|
|
||||||
if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
|
if (!x($_REQUEST, "source"))
|
||||||
$_REQUEST["source"] = "api";
|
$_REQUEST["source"] = api_source();
|
||||||
|
|
||||||
// call out normal post function
|
// call out normal post function
|
||||||
|
|
||||||
|
@ -1303,8 +1314,8 @@
|
||||||
$_REQUEST['type'] = 'wall';
|
$_REQUEST['type'] = 'wall';
|
||||||
$_REQUEST['api_source'] = true;
|
$_REQUEST['api_source'] = true;
|
||||||
|
|
||||||
if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
|
if (!x($_REQUEST, "source"))
|
||||||
$_REQUEST["source"] = "api";
|
$_REQUEST["source"] = api_source();
|
||||||
|
|
||||||
require_once('mod/item.php');
|
require_once('mod/item.php');
|
||||||
item_post($a);
|
item_post($a);
|
||||||
|
@ -1393,7 +1404,7 @@
|
||||||
AND `item`.`visible` = 1 and `item`.`moderated` = 0 AND `item`.`deleted` = 0
|
AND `item`.`visible` = 1 and `item`.`moderated` = 0 AND `item`.`deleted` = 0
|
||||||
AND `contact`.`id` = `item`.`contact-id`
|
AND `contact`.`id` = `item`.`contact-id`
|
||||||
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
|
AND `contact`.`blocked` = 0 AND `contact`.`pending` = 0
|
||||||
AND `item`.`parent` IN (SELECT `iid` from thread where uid = %d AND `mention`)
|
AND `item`.`parent` IN (SELECT `iid` from thread where uid = %d AND `mention` AND !`ignored`)
|
||||||
$sql_extra
|
$sql_extra
|
||||||
AND `item`.`id`>%d
|
AND `item`.`id`>%d
|
||||||
ORDER BY `item`.`id` DESC LIMIT %d ,%d ",
|
ORDER BY `item`.`id` DESC LIMIT %d ,%d ",
|
||||||
|
|
13252
view/bg/messages.po
13252
view/bg/messages.po
File diff suppressed because it is too large
Load diff
2666
view/bg/strings.php
2666
view/bg/strings.php
File diff suppressed because it is too large
Load diff
13236
view/cs/messages.po
13236
view/cs/messages.po
File diff suppressed because it is too large
Load diff
2696
view/cs/strings.php
2696
view/cs/strings.php
File diff suppressed because it is too large
Load diff
13210
view/de/messages.po
13210
view/de/messages.po
File diff suppressed because it is too large
Load diff
2674
view/de/strings.php
2674
view/de/strings.php
File diff suppressed because it is too large
Load diff
13419
view/eo/messages.po
13419
view/eo/messages.po
File diff suppressed because it is too large
Load diff
2674
view/eo/strings.php
2674
view/eo/strings.php
File diff suppressed because it is too large
Load diff
13210
view/es/messages.po
13210
view/es/messages.po
File diff suppressed because it is too large
Load diff
2674
view/es/strings.php
2674
view/es/strings.php
File diff suppressed because it is too large
Load diff
13051
view/fr/messages.po
13051
view/fr/messages.po
File diff suppressed because it is too large
Load diff
2674
view/fr/strings.php
2674
view/fr/strings.php
File diff suppressed because it is too large
Load diff
13164
view/is/messages.po
13164
view/is/messages.po
File diff suppressed because it is too large
Load diff
2670
view/is/strings.php
2670
view/is/strings.php
File diff suppressed because it is too large
Load diff
13238
view/nb-no/messages.po
13238
view/nb-no/messages.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
13230
view/nl/messages.po
13230
view/nl/messages.po
File diff suppressed because it is too large
Load diff
2674
view/nl/strings.php
2674
view/nl/strings.php
File diff suppressed because it is too large
Load diff
13234
view/pl/messages.po
13234
view/pl/messages.po
File diff suppressed because it is too large
Load diff
2696
view/pl/strings.php
2696
view/pl/strings.php
File diff suppressed because it is too large
Load diff
13238
view/pt-br/messages.po
13238
view/pt-br/messages.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
13238
view/ro/messages.po
13238
view/ro/messages.po
File diff suppressed because it is too large
Load diff
2696
view/ro/strings.php
2696
view/ro/strings.php
File diff suppressed because it is too large
Load diff
13244
view/ru/messages.po
13244
view/ru/messages.po
File diff suppressed because it is too large
Load diff
2696
view/ru/strings.php
2696
view/ru/strings.php
File diff suppressed because it is too large
Load diff
13196
view/zh-cn/messages.po
13196
view/zh-cn/messages.po
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue