captn3m0 / ifttt-webhook

:recycle: A webhook middleware for the ifttt.com service
https://github.com/captn3m0/ifttt-webhook
306 stars 67 forks source link

Field Tags / mt_keywords seems to have length limit #2

Closed thle closed 11 years ago

thle commented 11 years ago

Hi, great work, I use the hook on my machine. Recently I discovered there seems to be a limitation in IFTTT tags character length (around 140 in my case) which caused long urls are stripped somehow. Using the 'description' element works fine.

So I changed the code like this:

    //we use the tags field for providing webhook URL - but limited length
    case 'mt_keywords':
        //$url = $data->xpath('value/array/data/value/string');
        //$url = (string)$url[0];
        break;

    //use the description field for providing webhook URL
    case 'description':
        $url = (string)$data->value->string;
        break;

Maybe this is useful..

captn3m0 commented 11 years ago

Sounds good. I'll commit this without commenting the tags portion, as that might break stuff people have running. I'll give priority to description since it works better.