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-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-10-28 00:14:45 +00:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-22 12:39:38 -08:00
2010-11-30 16:34:52 -08:00
2010-11-30 18:53:04 +01:00
2010-11-30 18:53:04 +01:00
2010-11-30 18:53:04 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 21:35:25 +01:00
2010-10-28 01:58:43 +02:00
2010-10-28 01:58:43 +02:00
2010-11-30 18:53:04 +01:00
2010-09-20 20:40:55 +02:00
2010-12-02 13:41:56 -08:00
2010-12-02 12:42:58 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-10-28 01:58:43 +02:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-10-28 01:58:43 +02:00
2010-10-28 01:58:43 +02:00
2010-09-21 18:05:18 -04:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-11-30 18:53:04 +01:00
2010-11-30 18:53:04 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 21:35:25 +01:00
2010-10-28 01:58:43 +02:00
2009-10-02 11:46:14 +00:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 18:53:04 +01:00
2010-01-06 00:20:15 -05:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-12-01 12:21:00 -08:00
2010-11-29 20:28:28 +01:00
2010-02-17 12:03:14 -05:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-12-01 01:09:14 +00:00
2010-11-30 21:35:25 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-11-30 21:35:25 +01:00
2010-11-30 21:35:25 +01:00
2010-11-30 21:35:25 +01:00
2010-11-29 20:28:28 +01:00
2010-11-07 22:04:44 +01:00
2010-10-28 01:58:43 +02:00
2010-11-30 21:35:25 +01:00
2010-09-15 14:10:18 -07:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-11-07 22:33:23 +01:00
2010-09-15 14:10:18 -07:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-11-30 16:34:52 -08:00
2010-05-27 18:27:33 -04:00
2010-11-07 22:04:44 +01:00
2010-11-29 20:28:28 +01:00
2010-11-29 20:28:28 +01:00
2010-10-28 01:58:43 +02:00
2010-10-31 01:38:57 +02:00
2010-11-29 20:28:28 +01:00
2010-01-18 09:37:42 -08:00