X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotify.php;h=02260514af91493b287a06438fd799e016c224e5;hb=a22581e86cba4c96980ef7bd334aaaa43d02176d;hp=256bb77932bfb9ea304de9a3be94b2998281b2cb;hpb=5762ed2cdcb8ec68d12eb45775998b9e614df61d;p=friendica.git diff --git a/mod/notify.php b/mod/notify.php index 256bb77932..02260514af 100644 --- a/mod/notify.php +++ b/mod/notify.php @@ -17,6 +17,17 @@ function notify_init(&$a) { dbesc($r[0]['otype']), intval(local_user()) ); + + // The friendica client has problems with the GUID. this is some workaround + if ($a->is_friendica_app()) { + require_once("include/items.php"); + $urldata = parse_url($r[0]['link']); + $guid = basename($urldata["path"]); + $itemdata = get_item_id($guid, local_user()); + if ($itemdata["id"] != 0) + $r[0]['link'] = $a->get_baseurl().'/display/'.$itemdata["nick"].'/'.$itemdata["id"]; + } + goaway($r[0]['link']); }