mirror of
https://github.com/friendica/friendica
synced 2025-04-25 05:10:11 +00:00
API: Set the application name to "api" (if not defined), "remote_self" has an application name as well.
This commit is contained in:
parent
bd0b93e630
commit
21c09c0732
2 changed files with 10 additions and 0 deletions
|
@ -726,6 +726,9 @@
|
|||
|
||||
$_REQUEST['api_source'] = true;
|
||||
|
||||
if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
|
||||
$_REQUEST["source"] = "api";
|
||||
|
||||
// call out normal post function
|
||||
|
||||
require_once('mod/item.php');
|
||||
|
@ -1300,6 +1303,9 @@
|
|||
$_REQUEST['type'] = 'wall';
|
||||
$_REQUEST['api_source'] = true;
|
||||
|
||||
if (!isset($_REQUEST["source"]) OR ($_REQUEST["source"] == ""))
|
||||
$_REQUEST["source"] = "api";
|
||||
|
||||
require_once('mod/item.php');
|
||||
item_post($a);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue