Brion Vibber aa96c3c1d9 Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels
common_shorten_links() can only access the web session's logged-in user, so never properly took user options into effect for posting via XMPP, API, mail, etc.

Adds an optional $user parameter on common_shorten_links(), and a $user->shortenLinks() as a clearer interface for that.
Tweaked some lower-level functions so $user gets passed down -- making the $notice_id param previously there for saving URLs at notice save time generalized a little.

Note also ticket #2919: there's a lot of duplicate code calling the shortening, checking the length, and reporting near-identical error messages. These should be consolidated to aid in code and translation maintenance.
2010-12-02 13:41:56 -08:00
..
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-11-11 10:39:05 -08:00
2010-10-28 01:21:09 +02:00
2010-10-24 23:43:26 -04:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:09 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-28 01:21:21 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-10-31 00:58:35 +02:00
2010-03-10 22:27:28 +00:00
2010-11-01 16:49:35 +01:00
2010-07-19 21:09:09 -05:00
2009-12-20 20:20:35 +01:00
2010-01-10 12:26:24 +01:00
2010-02-25 18:39:55 -05:00
2010-11-01 16:49:35 +01:00
2009-11-09 20:01:46 +01:00
2010-11-01 16:49:35 +01:00
2010-10-20 00:49:12 +02:00
2010-11-01 16:49:35 +01:00
2010-03-08 18:06:21 -05:00
2010-10-20 20:29:59 +02:00
2010-11-01 16:49:35 +01:00
2010-10-24 23:43:26 -04:00
2010-11-01 16:49:35 +01:00
2010-04-11 23:24:38 +02:00
2010-04-11 01:03:06 +02:00
2010-01-10 12:26:24 +01:00
2010-03-05 16:23:28 -08:00
2010-11-01 16:49:35 +01:00