Better detection for the mobile client to avoid "{0}" in notifications.
This commit is contained in:
parent
e02546880f
commit
c89c0916e2
3 changed files with 13 additions and 5 deletions
|
@ -18,11 +18,8 @@ function notify_init(&$a) {
|
|||
intval(local_user())
|
||||
);
|
||||
|
||||
// Friendica-Client
|
||||
$friendicamobile = ($_SERVER['HTTP_USER_AGENT'] == "Apache-HttpClient/UNAVAILABLE (java 1.4)");
|
||||
|
||||
// The friendica client has problems with the GUID. this is some workaround
|
||||
if ($friendicamobile) {
|
||||
if ($a->is_friendica_app()) {
|
||||
require_once("include/items.php");
|
||||
$urldata = parse_url($r[0]['link']);
|
||||
$guid = basename($urldata["path"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue