I had a look at the code and I may have a lead. The url is automatically shortened with a copy-paste when the function URLShorten.Shorten is called without checking the settings "shorten-urls".
Strangely I couldn't find where it was called from, at least not from client.py or gwui.py (the only place I found where this function is called and anyway the setting is checked there).
The not-so-beautiful solution I found was to recheck the setting again in the function URLShorten.Shorten (cf my patch)
I had a look at the code and I may have a lead. The url is automatically shortened with a copy-paste when the function URLShorten.Shorten is called without checking the settings "shorten-urls".
Strangely I couldn't find where it was called from, at least not from client.py or gwui.py (the only place I found where this function is called and anyway the setting is checked there).
The not-so-beautiful solution I found was to recheck the setting again in the function URLShorten.Shorten (cf my patch)