X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnotify.php;h=02260514af91493b287a06438fd799e016c224e5;hb=e54414692e6b302cbd3bee88587d3f12c812bf1a;hp=256bb77932bfb9ea304de9a3be94b2998281b2cb;hpb=623bf1c4d1531888617b90af6b88ec5e20d29dd1;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']); }