gnu-social/lib
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
..
accountsettingsaction.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
action.php include full updated source of JSON2 and use updated minified version 2010-11-17 12:34:04 -05:00
activity.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
activitycontext.php Merge branch '0.9.x' into activityexport 2010-09-15 23:31:20 -04:00
activityobject.php Merge branch 'master' of gitorious.org:statusnet/mainline into feedfix 2010-09-30 11:31:29 -07:00
activityutils.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
activityverb.php * update/add translator documentation 2010-09-13 21:10:54 +02:00
adminform.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
adminpanelaction.php Merge branch 'master' into 0.9.x 2010-09-21 12:48:16 -07:00
apiaction.php Merge branch 'master' into 0.9.x 2010-11-19 16:18:53 -08:00
apiauth.php * i18n/L10n fixes. 2010-10-20 19:34:27 +02:00
apibareauth.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
apioauth.php - Update ApiOauthAuthorizeAction to 1.0a 2010-10-06 19:20:47 -07:00
apioauthstore.php Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x 2010-10-21 01:18:53 +00:00
apiprivateauth.php * update/add translator documentation 2010-09-13 21:10:55 +02:00
applicationeditform.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
applicationlist.php Add FIXME 2010-10-20 20:01:12 +02:00
arraywrapper.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
atom10feed.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
atomcategory.php move atom category to its own file, too 2010-03-20 16:55:36 -05:00
atomgroupnoticefeed.php Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x 2010-06-26 10:17:36 -04:00
atomnoticefeed.php log exceptions in atom feeds, but don't let them kill the output 2010-07-13 10:53:47 -04:00
atomusernoticefeed.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
attachmentlist.php restore empty showFallback() for attachment display; still needed for one-offs 2010-11-15 12:56:56 -08:00
attachmentnoticesection.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
attachmenttagcloudsection.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
authenticationplugin.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
authorizationplugin.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
avatarlink.php Fix problem with AvatarLink in which it was sometimes leaving the width attribute empty 2010-06-16 18:27:51 -07:00
blockform.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
cache.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
channel.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
clienterroraction.php - New base InfoAction for dialog box like msgs 2010-10-06 19:06:57 -07:00
clientexception.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
columndef.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
command.php Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels 2010-12-02 13:41:56 -08:00
commandinterpreter.php * i18n/L10n and translator documentation updates. 2010-09-29 00:39:45 +02:00
common.php Fix dumb mistake -- changed function names partway through writing Nickname and forgot to update a couple places. :) 2010-12-01 11:21:00 -08:00
connectsettingsaction.php Spelling - OAuth not Oath 2010-10-12 16:20:09 -07:00
currentuserdesignaction.php Facebook: Gracefully handle disconnection 2010-11-17 21:53:56 +00:00
curry.php PHP 5.3 closure-based implementation of curry(); old implementation used as fallback for older PHP versions. Added unit tests to confirm they both work! 2009-12-16 09:27:48 -05:00
daemon.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
dberroraction.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
dbqueuemanager.php Fix bug in db queue manager: when receiving an invalid or deleted notice, we were running it through the 'temporary fail, release it to try again' path instead of the 'done, discard item' path. Should fix some infinite-loop-of-doom-in-queue cases. 2010-09-20 13:19:58 -07:00
default.php Add $config['attachments']['process_links'] to allow disabling processing of mentioned URL links for attachment info (oEmbed lookups) and dereferencing of redirects that we didn't have shortened ourselves. 2010-11-17 13:03:59 -08:00
deletegroupform.php Add a basic group deletion for moderator users. 2010-10-12 15:49:20 -07:00
deleteuserform.php add forms for silence, sandbox, delete user 2009-11-15 16:00:29 +01:00
deluserqueuehandler.php catch UserNoProfileException and continue 2010-04-10 11:36:23 -04:00
designsettings.php * i18n/L10n updates. 2010-11-04 19:16:19 +01:00
disfavorform.php Add Start/EndFavorNoticeForm and Start/EndDisFavorNoticeForm hooks 2010-09-29 16:35:14 -07:00
distribqueuehandler.php ForceGroup plugin: optionally force new users to join a particular group or set of groups on registration; and/or to force posts by members of particular groups to be posted into those groups even if not explicitly mentioned. The posting feature requires a couple quick hook additions in core. 2010-09-30 18:05:44 -07:00
dofollowlistitem.php options to nofollow external links in notices 2010-10-18 11:29:52 -04:00
error.php - New base InfoAction for dialog box like msgs 2010-10-06 19:06:57 -07:00
event.php Major refactoring of queue handlers to support running multiple sites in one daemon. 2010-01-12 20:45:09 -08:00
favorform.php Add Start/EndFavorNoticeForm and Start/EndDisFavorNoticeForm hooks 2010-09-29 16:35:14 -07:00
featureduserssection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
feed.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
feedlist.php * translator documentation updates. 2010-10-30 14:36:54 +02:00
form.php Design admin panel mostly done. 2009-11-18 18:25:36 -08:00
galleryaction.php Updated layout for filter by tag form 2009-09-04 15:59:27 +00:00
grantroleform.php Initial user role controls on profile pages, for owner to add/remove administrator and moderator options. 2010-03-03 15:43:49 -08:00
groupdesignaction.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
groupeditform.php * i18n/L10n updates. 2010-11-01 16:49:35 +01:00
grouplist.php Added single whitespace to separate inline text words. 2010-02-15 20:41:46 +01:00
groupminilist.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
groupnav.php Update translator documentation. 2010-09-12 18:34:33 +02:00
groupsbymemberssection.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
groupsbypostssection.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
groupsection.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
grouptagcloudsection.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
htmloutputter.php New Start/EndHtmlElement events. Allows adding namespaces. 2010-10-29 23:38:00 +00:00
httpclient.php Partial fix for ticket #2489 -- problems with SNI SSL virtual host certificate validation. 2010-08-06 10:14:07 -07:00
imagefile.php Break out ImageFile->resizeTo() from ImageFile->resize(); allows resizing images to non-square sizes and to arbitrary destinations. Will be used for creating thumbnails as well as the originala use of cropping/sizing avatars. 2010-11-08 16:56:08 -08:00
info.php - New base InfoAction for dialog box like msgs 2010-10-06 19:06:57 -07:00
inlineattachmentlist.php CSS class tweak for inline attachment thumbnails to avoid things thinking they're content links 2010-11-10 14:31:55 -08:00
installer.php Fix for ticket #2828: apostrophe in site name set in installer created a broken config.php. 2010-10-14 16:25:43 -07:00
iomanager.php Stomp queue restructuring for mass scalability: 2010-02-16 09:16:51 -08:00
iomaster.php Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x 2010-02-21 11:12:56 -08:00
jabber.php Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator 2010-03-30 17:35:27 -07:00
jabberqueuehandler.php Fix more fatal errors in queue edge cases 2010-01-28 23:08:36 -08:00
joinform.php OStatus: fix remote groups to work with new user_groups/local_groups split. 2010-02-25 13:02:08 -08:00
jsonsearchresultslist.php Ticket #1987: support since_id on API notice search methods. 2010-11-19 14:00:22 -08:00
language.php Localisation updates from http://translatewiki.net 2010-09-28 01:02:08 +02:00
leaveform.php OStatus: fix remote groups to work with new user_groups/local_groups split. 2010-02-25 13:02:08 -08:00
liberalstomp.php Stomp blocking writes fix 2010-06-03 16:09:47 -07:00
location.php tobyink's location RDF patch 2009-11-19 12:00:25 -05:00
logingroupnav.php Merge branch '0.8.x' into 0.9.x 2009-08-27 11:16:45 -07:00
mail.php Fix for ticket #2852: skip sending favorite notification emails if the favoriter is someone you've blocked. 2010-11-03 15:17:46 -07:00
mailbox.php Add two i18n related FIXMEs. 2010-08-08 21:13:21 +02:00
mailhandler.php Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels 2010-12-02 13:41:56 -08:00
mediafile.php Keep aspect ratio when generating local thumbnails 2010-11-08 17:51:53 -08:00
messageform.php Ticket #2899: clean up inbox/outbox DM form a bit: 2010-11-19 11:56:03 -08:00
microid.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
mysqlschema.php Workaround for index setup on SubMirror until I'm done w/ arbitrary index support for Schema setup. 2010-08-10 11:45:34 -07:00
nickname.php Fix dumb mistake -- changed function names partway through writing Nickname and forgot to update a couple places. :) 2010-12-01 11:21:00 -08:00
noticeform.php hide the Whats Up Nickname if notice title enabled 2010-08-13 12:22:58 -07:00
noticelist.php Add a quick config setting to disable/enable display of thumbnails in regular notice lists (attachments/show_thumbs) - disabling gives the same display as before this feature was added (but changes to oembed handling are still there, and the lightbox popup is gone) 2010-11-12 12:24:55 -08:00
noticesection.php Added another single whitespace 2010-02-15 21:21:25 +01:00
nudgeform.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
oauthclient.php Upgrade Twitter bridge to use OAuth 1.0a. It's more secure, and allows 2010-02-17 20:58:15 +00:00
oauthstore.php Clean up remote avatar temporary files if we fail before saving them into avatars directory (OMB core, OStatus, WikiHowProfile, YammerImport) 2010-10-13 11:10:04 -07:00
oembedhelper.php Add some basic oEmbed lookup test cases; fixed a bug in discovery fallback. 2010-11-15 11:55:28 -08:00
omb.php Revert "show service debug info" 2010-03-01 18:49:39 -05:00
ombqueuehandler.php Fix more fatal errors in queue edge cases 2010-01-28 23:08:36 -08:00
ownerdesignaction.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
parallelizingdaemon.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
personalgroupnav.php Use Profile->getBestName() in PersonalGroupNav instead of manually picking nickname vs fullname. Logic should still work the same when no nickname is provided, but it doesn't make any sense -- probably needs cleanup. :) 2010-11-03 13:11:34 -07:00
personaltagcloudsection.php Add time-based cutoffs for public tag cloud, favorited lists to speed up those queries. 2010-02-04 11:06:01 -08:00
pgsqlschema.php fix the column modify on stuff for postgres. change serial to bigserial 2010-05-17 13:50:37 +12:00
ping.php Tabs to spaces, superfluous whitespace removed. 2010-10-30 13:47:19 +02:00
pingqueuehandler.php XMPP queued output & initial retooling of DB queue manager to support non-Notice objects. 2010-01-22 12:52:36 -08:00
plugin.php Add a $config['plugins']['locale_path'] which can be set to override the individual plugins' locale subdirectories. 2010-09-30 19:23:42 -07:00
pluginqueuehandler.php XMPP queued output & initial retooling of DB queue manager to support non-Notice objects. 2010-01-22 12:52:36 -08:00
poco.php Move activity classes to their own files 2010-03-20 16:06:22 -05:00
pocoaddress.php Move activity classes to their own files 2010-03-20 16:06:22 -05:00
pocourl.php Move activity classes to their own files 2010-03-20 16:06:22 -05:00
popularity.php Fix regression in PopularNoticeSection: tag parameter was broken, causing sidebar on tag pages to show untagged favorites. 2010-11-18 14:30:00 -08:00
popularnoticesection.php Prep for ticket #2895: consolidate common code from PopularNoticeList and FavoritedAction for fetching popular notice lists 2010-11-16 11:10:32 -08:00
processmanager.php Detect when queuedaemon/xmppdaemon parent processes die and kill the child processes. 2010-03-10 11:54:00 -08:00
profileaction.php some User -> Profile cleanup to help in adapting the profile page action to show stuff for remote users. Subscriptions, groups, roles, etc are all on profiles now so go ahead and use em. 2010-11-15 15:32:57 -08:00
profileactionform.php common superclass for actions that operate on a profile and return 2009-11-16 14:28:58 +01:00
profileformaction.php Added block link to subscription notification emails; block action can now take a profile ID on the URL; added profile details to block page so there's an indication of who you're blocking before you pull the trigger. 2010-05-20 14:24:44 -07:00
profilelist.php make profilelist homepage link attributes overrideable 2010-04-05 11:17:06 -04:00
profileminilist.php override linkAttributes() method for profileminilist 2010-04-05 10:46:38 -04:00
profilequeuehandler.php try/catch on omb profile pings 2010-02-25 21:06:53 -08:00
profilesection.php Added single whitespace to separate inline text words. 2010-02-15 20:41:46 +01:00
publicgroupnav.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
publicqueuehandler.php Fix more fatal errors in queue edge cases 2010-01-28 23:08:36 -08:00
queued_xmpp.php Fix ticket #2208: regression in XMPP sending when server != host 2010-03-08 12:19:06 -08:00
queuehandler.php XMPP queued output & initial retooling of DB queue manager to support non-Notice objects. 2010-01-22 12:52:36 -08:00
queuemanager.php Background deletion of user accounts. Notices are deleted in chunks, then the user itself when they're all gone. 2010-03-15 16:08:00 -07:00
queuemonitor.php Major refactoring of queue handlers to support running multiple sites in one daemon. 2010-01-12 20:45:09 -08:00
redirectingaction.php Added block link to subscription notification emails; block action can now take a profile ID on the URL; added profile details to block page so there's an indication of who you're blocking before you pull the trigger. 2010-05-20 14:24:44 -07:00
repeatform.php Updated Repeat notice option submit button style 2009-12-23 15:59:31 -05:00
revokeroleform.php Initial user role controls on profile pages, for owner to add/remove administrator and moderator options. 2010-03-03 15:43:49 -08:00
right.php Add a basic group deletion for moderator users. 2010-10-12 15:49:20 -07:00
router.php Merge branch 'master' into 0.9.x 2010-11-30 14:46:26 -05:00
rssaction.php handle missing profile for notices better in Rss10Action 2010-07-13 10:59:15 -04:00
sandboxform.php add forms for silence, sandbox, delete user 2009-11-15 16:00:29 +01:00
schema.php allow schema to work on more than one connection (namely, the Status_network DB) 2010-07-29 21:04:28 -04:00
search_engines.php Ticket #2797: replace addslashes() with explicit escape calls on the DB objects 2010-11-19 15:06:26 -08:00
searchaction.php * add translator documentation. 2010-11-01 16:49:34 +01:00
searchgroupnav.php Ticket 2007: make search tabs grammar forms consistent (People, Notices, Groups) 2009-11-23 06:42:02 -08:00
section.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
servererroraction.php - New base InfoAction for dialog box like msgs 2010-10-06 19:06:57 -07:00
serverexception.php - Update ApiOauthAuthorizeAction to 1.0a 2010-10-06 19:20:47 -07:00
settingsaction.php Revert "* [Cc]an't -> [Cc]annot" 2009-11-08 23:28:51 +01:00
silenceform.php give SilenceForm proper superclass 2009-11-16 17:05:03 +01:00
smsqueuehandler.php XMPP queued output & initial retooling of DB queue manager to support non-Notice objects. 2010-01-22 12:52:36 -08:00
snapshot.php catch exceptions from snapshot 2010-01-10 14:06:52 -08:00
spawningdaemon.php Detect when queuedaemon/xmppdaemon parent processes die and kill the child processes. 2010-03-10 11:54:00 -08:00
statusnet.php Fix isHTTPS to work correctly for Cherokee and IIS 2010-11-10 15:53:20 -05:00
stompqueuemanager.php StatusNet_network staticGet lookup fix 2010-08-10 17:22:26 -07:00
subgroupnav.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subpeopletagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subs.php reuse Subscription::cancel instead of reimplementing it. 2010-03-11 20:40:25 -05:00
subscribeform.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subscriberspeopleselftagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subscriberspeopletagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subscriptionlist.php Updated tag list output in subscriptions list. Matches userprofile. 2010-03-25 22:20:06 +01:00
subscriptionspeopleselftagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
subscriptionspeopletagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
tabledef.php Break TableDef, ColumnDef classes to separate files so autoloader can find them. 2009-11-24 09:40:47 -08:00
tagcloudsection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
taguri.php Add a library to mint tag URIs 2010-02-20 13:23:08 -05:00
theme.php * i18n/L10n updates. 2010-11-04 19:16:19 +01:00
themeuploader.php Fix i18n issues that are solved by using plural. 2010-11-01 16:49:33 +01:00
topposterssection.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
uapplugin.php * translator documentation updates. 2010-10-30 14:36:54 +02:00
unblockform.php * i18n/L10n updates. 2010-10-31 00:58:35 +02:00
unqueuemanager.php Fix unqueuemanager for updated QueueHandler interface 2010-01-22 14:06:20 -08:00
unsandboxform.php give UnsandboxForm correct superclass 2009-11-16 17:05:31 +01:00
unsilenceform.php give UnsilenceForm correct superclass 2009-11-16 17:05:39 +01:00
unsubscribeform.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
useractivitystream.php move useractivitystream class to its own module 2010-09-15 15:18:01 -04:00
usernoprofileexception.php Fix unescaped dollar signs in double-quoted strings due to localization updates (%1$s etc) 2010-10-04 14:24:04 -07:00
userprofile.php RemoteProfileAction cleanup: 2010-11-15 16:12:16 -08:00
util.php Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels 2010-12-02 13:41:56 -08:00
webcolor.php More complete sentence and translator documentation added. 2010-10-20 00:53:42 +02:00
widget.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
xmloutputter.php Add configuration option to toggle the indenting of the output HTML. Defaults to indent enabled. 2009-12-05 01:03:04 -05:00
xmlstringer.php define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
xmppmanager.php Fix for tickets #2917, #2262: user URL shortening options not being applied in non-web channels 2010-12-02 13:41:56 -08:00
xmppoutqueuehandler.php i18n/L10n updates, translator docs updated, superfluous whitespace removed. 2010-10-21 03:10:46 +02:00
xrd.php move xrd and hostmeta out of the OStatus plugin and into core 2010-11-26 21:12:14 -05:00
xrdaction.php Make userxrd work without OStatus enabled 2010-11-26 22:09:51 -05:00
xrdsoutputter.php Assigning my copyrights to the Free Software Foundation 2010-05-27 18:27:33 -04:00