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-11-19 16:18:53 -08:00
2010-10-20 19:34:27 +02:00
2010-10-20 20:01:12 +02:00
2010-11-04 19:16:19 +01:00
2009-11-18 18:25:36 -08:00
2010-11-01 16:49:35 +01:00
2010-09-12 18:34:33 +02:00
2010-06-03 16:09:47 -07:00
2009-11-19 12:00:25 -05:00
2010-08-08 21:13:21 +02:00
2010-03-01 18:49:39 -05:00
2010-11-30 14:46:26 -05:00
2010-01-10 14:06:52 -08:00
2010-02-20 13:23:08 -05:00
2010-11-04 19:16:19 +01:00
2010-10-31 00:58:35 +02:00
2010-11-15 16:12:16 -08:00