]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
13 years agoConvert Notice::asAtomEntry() to use Notice::asActivity() and Activity::asString()
Evan Prodromou [Sun, 5 Dec 2010 21:15:05 +0000 (16:15 -0500)]
Convert Notice::asAtomEntry() to use Notice::asActivity() and Activity::asString()

We had two ways to generate an activity entry from a notice; one through
Notice::asAtomEntry() and one through Notice::asActivity() and
Activity::asString(). The code paths had already diverged somewhat. I
took the conditions that were in Notice::asAtomEntry() and made sure
they were replicated in the other two functions. Then, I rewrote
Notice::asAtomEntry() to use the other two functions instead.

This change passes the ActivityGenerationTests unit tests, but there
may be some other stuff that's not getting covered.

13 years agoURL shortening fix for direct messages: if we're going to shorten the text, shorten...
Brion Vibber [Thu, 2 Dec 2010 21:59:51 +0000 (13:59 -0800)]
URL shortening fix for direct messages: if we're going to shorten the text, shorten the rendered text too.

13 years agoFix for tickets #2917, #2262: user URL shortening options not being applied in non...
Brion Vibber [Thu, 2 Dec 2010 18:56:44 +0000 (10:56 -0800)]
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.

13 years ago* fix typo in parameter notation
Siebrand Mazeland [Thu, 2 Dec 2010 11:42:58 +0000 (12:42 +0100)]
* fix typo in parameter notation
* add FIXME for unused message
* remove superfluous whitespace

13 years ago* Fix an incorrectly formatted message parameter in line 334.
Siebrand Mazeland [Thu, 2 Dec 2010 11:33:03 +0000 (12:33 +0100)]
* Fix an incorrectly formatted message parameter in line 334.
* i18n/L10n updates
* translator documentation updated

13 years agoTicket #2912 further cleanup: use JS on emailsettings form to help connect the 'I...
Brion Vibber [Wed, 1 Dec 2010 22:23:56 +0000 (14:23 -0800)]
Ticket #2912 further cleanup: use JS on emailsettings form to help connect the 'I want to post by email' checkbox with the controls for adding or removing a post-by-email alias.

Now, when you first come up the checkbox will most likely be off and the button to create an address is grayed out.
Checking the box enables use of the 'new' button to generate an email address -- it's left disabled until you check the box, so you can't accidentally trip it.
Actually adding the address now enables the post-by-mail option, as well, thus ensuring that it's saved. WARNING: OTHER CHANGES ON THE FORM WILL STILL BE LOST.
Removing the address now disables the post-by-mail option, so it's not sitting around confusingly enabled but useless.

You can still disable the checkbox manually without removing the address, in case you want to keep it for later.
It's also still possible to actually save it in the state where the option is enabled, but there's no configured address, but that shouldn't happen too often. Possibly that should be prevented outright though.

13 years agoTicket #2912 tweaks: clean up wording on the incoming email generator box a bit.
Brion Vibber [Wed, 1 Dec 2010 21:10:54 +0000 (13:10 -0800)]
Ticket #2912 tweaks: clean up wording on the incoming email generator box a bit.

13 years agoTicket #2912: move 'I want to post notices by email" checkbox up from the email ...
Brion Vibber [Wed, 1 Dec 2010 21:04:18 +0000 (13:04 -0800)]
Ticket #2912: move 'I want to post notices by email" checkbox up from the email *output* prefs up into the box for the address to post to, so they're next to each other.

13 years agoFix for ticket #2911: Hitting enter on the "associate with current account" in OpenID...
Brion Vibber [Wed, 1 Dec 2010 20:21:00 +0000 (12:21 -0800)]
Fix for ticket #2911: Hitting enter on the "associate with current account" in OpenID flow failed due to forms being mixed together

Separating the two forms (one to create a local account, the other to attach the OpenID to an existing account) gets them working -- enter activates the appropriate default button.

13 years agoFix dumb mistake -- changed function names partway through writing Nickname and forgo...
Brion Vibber [Wed, 1 Dec 2010 19:21:00 +0000 (11:21 -0800)]
Fix dumb mistake -- changed function names partway through writing Nickname and forgot to update a couple places. :)

13 years agoadd OpenID data to the Webfinger XRD file so you can login with it elsewhere
Evan Prodromou [Wed, 1 Dec 2010 18:43:34 +0000 (13:43 -0500)]
add OpenID data to the Webfinger XRD file so you can login with it elsewhere

13 years agoMerge remote branch 'gitorious/0.9.x' into 0.9.x
Evan Prodromou [Wed, 1 Dec 2010 14:48:58 +0000 (09:48 -0500)]
Merge remote branch 'gitorious/0.9.x' into 0.9.x

13 years agoTicket #2913: Realtime background update marker no longer triggers false positives...
Brion Vibber [Wed, 1 Dec 2010 01:09:14 +0000 (01:09 +0000)]
Ticket #2913: Realtime background update marker no longer triggers false positives when clearing the marker on switching away from the tab in Firefox 4

We were clearing the counter on the window title in the blur event, which gets fired *after* we switch away, thus triggering Firefox to mark the tab as updated again.
Clearing the counter on *focus* instead avoids this, and keeps the counter out of the way as well.

13 years agoFix ticket #2914: Realtime no longer tells you it's got a message queued up when...
Brion Vibber [Wed, 1 Dec 2010 00:46:11 +0000 (16:46 -0800)]
Fix ticket #2914: Realtime no longer tells you it's got a message queued up when it's really the one you just sent out and is already visible.

13 years agoWent through realtimeupdate.js and added documentation comments -- does not alter...
Brion Vibber [Wed, 1 Dec 2010 00:35:47 +0000 (16:35 -0800)]
Went through realtimeupdate.js and added documentation comments -- does not alter the minified version. :)

Identified several bugs and fixmes, and added more thorough labeling of the issues with replicating the entire HTML structure of notices (no i18n, missing new features, maintenance problems, possible other issues)

13 years agoMerge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Wed, 1 Dec 2010 00:34:52 +0000 (16:34 -0800)]
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x

Conflicts:
lib/router.php

13 years agoFlush router cache when saving Twitter admin settings: adding/removing keys can enabl...
Brion Vibber [Tue, 30 Nov 2010 20:46:33 +0000 (12:46 -0800)]
Flush router cache when saving Twitter admin settings: adding/removing keys can enable/disable some actions. This avoids having users' Twitter settings unreachable after adding your keys to an installation with TwitterBridge on but not pre-configured.

13 years agoBitlyPlugin: fix for shortening URLs containing ampersand (&)
Brion Vibber [Tue, 30 Nov 2010 20:40:23 +0000 (12:40 -0800)]
BitlyPlugin: fix for shortening URLs containing ampersand (&)

13 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Tue, 30 Nov 2010 20:35:25 +0000 (21:35 +0100)]
Localisation updates from http://translatewiki.net.

13 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Evan Prodromou [Tue, 30 Nov 2010 19:46:45 +0000 (14:46 -0500)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

13 years agoMerge branch 'master' into 0.9.x
Evan Prodromou [Tue, 30 Nov 2010 19:46:26 +0000 (14:46 -0500)]
Merge branch 'master' into 0.9.x

Conflicts:
lib/router.php

13 years agowas using Cache::get() and ::set() wrong
Evan Prodromou [Tue, 30 Nov 2010 19:44:16 +0000 (14:44 -0500)]
was using Cache::get() and ::set() wrong

13 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Tue, 30 Nov 2010 17:53:04 +0000 (18:53 +0100)]
Localisation updates from http://translatewiki.net.

13 years agoa quick script to flush the router from cache if needed
Evan Prodromou [Tue, 30 Nov 2010 15:27:32 +0000 (10:27 -0500)]
a quick script to flush the router from cache if needed

13 years agoa quick script to flush the router from cache if needed
Evan Prodromou [Tue, 30 Nov 2010 15:27:32 +0000 (10:27 -0500)]
a quick script to flush the router from cache if needed

13 years agouse a CRC32 of the plugin names rather than actual names
Evan Prodromou [Tue, 30 Nov 2010 15:11:39 +0000 (10:11 -0500)]
use a CRC32 of the plugin names rather than actual names

13 years agouse a CRC32 of the plugin names rather than actual names
Evan Prodromou [Tue, 30 Nov 2010 15:11:39 +0000 (10:11 -0500)]
use a CRC32 of the plugin names rather than actual names

13 years agoSquashed commit of the following:
Evan Prodromou [Tue, 30 Nov 2010 14:57:02 +0000 (09:57 -0500)]
Squashed commit of the following:

commit 39fdd181d95d2c39a3ea1ca330b10a99a92b961f
Author: Evan Prodromou <evan@status.net>
Date:   Mon Nov 29 10:37:49 2010 -0500

    use cache key prefix for router cache key

commit 4cb9e56941922489b83d6425c059cf770991e68f
Author: Evan Prodromou <evan@status.net>
Date:   Mon Nov 29 10:31:21 2010 -0500

    use a unique hashkey based on the software version and loaded plugins

commit 44458b48aef719543e11f83b41fded65cbcb8be9
Author: Evan Prodromou <evan@status.net>
Date:   Sat Nov 27 17:04:15 2010 -0500

    cache the NUM object

commit 809c188307a9b4ada15f3d7fa573a6034341efef
Author: Evan Prodromou <evan@status.net>
Date:   Sat Nov 27 15:44:12 2010 -0500

    accelerate routing by pivoting paths on actions

13 years agoSquashed commit of the following:
Evan Prodromou [Tue, 30 Nov 2010 14:57:02 +0000 (09:57 -0500)]
Squashed commit of the following:

commit 39fdd181d95d2c39a3ea1ca330b10a99a92b961f
Author: Evan Prodromou <evan@status.net>
Date:   Mon Nov 29 10:37:49 2010 -0500

    use cache key prefix for router cache key

commit 4cb9e56941922489b83d6425c059cf770991e68f
Author: Evan Prodromou <evan@status.net>
Date:   Mon Nov 29 10:31:21 2010 -0500

    use a unique hashkey based on the software version and loaded plugins

commit 44458b48aef719543e11f83b41fded65cbcb8be9
Author: Evan Prodromou <evan@status.net>
Date:   Sat Nov 27 17:04:15 2010 -0500

    cache the NUM object

commit 809c188307a9b4ada15f3d7fa573a6034341efef
Author: Evan Prodromou <evan@status.net>
Date:   Sat Nov 27 15:44:12 2010 -0500

    accelerate routing by pivoting paths on actions

13 years agoMerge branch 'namecase' into 0.9.x
Brion Vibber [Tue, 30 Nov 2010 00:47:51 +0000 (16:47 -0800)]
Merge branch 'namecase' into 0.9.x

13 years agoNormalize username strings in command parsing
Brion Vibber [Tue, 30 Nov 2010 00:44:40 +0000 (16:44 -0800)]
Normalize username strings in command parsing

13 years agoGeneral code safety: validate input and escape SQL strings in common_relative_profile()
Brion Vibber [Tue, 30 Nov 2010 00:44:01 +0000 (16:44 -0800)]
General code safety: validate input and escape SQL strings in common_relative_profile()

13 years agoUse Nickname::DISPLAY_FMT instead of manual regex fragments in router setup for nickn...
Brion Vibber [Tue, 30 Nov 2010 00:02:35 +0000 (16:02 -0800)]
Use Nickname::DISPLAY_FMT instead of manual regex fragments in router setup for nickname parameters.

13 years agoFacebookBridge:
Zach Copley [Mon, 29 Nov 2010 23:57:41 +0000 (23:57 +0000)]
FacebookBridge:
- Don't try to access Foreign_link if it doesn't exist
- Remove noisy debugging statement

13 years agoReplace a couple plugin usages of NICKNAME_FMT with Nickname::normalize()
Brion Vibber [Mon, 29 Nov 2010 23:11:07 +0000 (15:11 -0800)]
Replace a couple plugin usages of NICKNAME_FMT with Nickname::normalize()

13 years agoAdd Nickname test cases for @-reply regexes in common_find_mentions
Brion Vibber [Mon, 29 Nov 2010 23:04:21 +0000 (15:04 -0800)]
Add Nickname test cases for @-reply regexes in common_find_mentions

13 years agoNickname class to encapsulate validation & common regexes for nickname formats.
Brion Vibber [Mon, 29 Nov 2010 22:46:10 +0000 (14:46 -0800)]
Nickname class to encapsulate validation & common regexes for nickname formats.
This provides initial infrastructure for decoupling display names from internal canonical names, but continues to have us storing and using the canonical forms.

It should be/become possible to provide mixed-case and underscore-containing names in links, @-mention, !-group, etc, but we don't store those alternate forms generally.

13 years agoWork in progress on nickname validation changes. lib/nickname.php appears to have...
Brion Vibber [Mon, 29 Nov 2010 22:15:25 +0000 (14:15 -0800)]
Work in progress on nickname validation changes. lib/nickname.php appears to have been destroyed by NetBeans and will be rewritten shortly. Sigh.

13 years agodoc comments on User::allowed_nickname
Brion Vibber [Mon, 29 Nov 2010 19:57:27 +0000 (11:57 -0800)]
doc comments on User::allowed_nickname

13 years agoStart on some nickname-validation test cases: several of these fail right now because...
Brion Vibber [Mon, 29 Nov 2010 19:31:33 +0000 (11:31 -0800)]
Start on some nickname-validation test cases: several of these fail right now because we had regressions in 0.8 or 0.9 where we lost normalization of uppercase and some other chars.

13 years agoAdd some doc comments on nickname-related stuff in util.php
Brion Vibber [Mon, 29 Nov 2010 19:31:10 +0000 (11:31 -0800)]
Add some doc comments on nickname-related stuff in util.php

13 years agoLocalisation updates from http://translatewiki.net.
Siebrand Mazeland [Mon, 29 Nov 2010 19:18:13 +0000 (20:18 +0100)]
Localisation updates from http://translatewiki.net.

14 years agoNet URL Mapper Path plex file
Evan Prodromou [Sat, 27 Nov 2010 21:52:32 +0000 (16:52 -0500)]
Net URL Mapper Path plex file

14 years agoNet_URL_Mapper 0.9.1
Evan Prodromou [Sat, 27 Nov 2010 21:48:52 +0000 (16:48 -0500)]
Net_URL_Mapper 0.9.1

14 years agoMerge remote branch 'gitorious/0.9.x' into 0.9.x
Evan Prodromou [Sat, 27 Nov 2010 03:11:12 +0000 (22:11 -0500)]
Merge remote branch 'gitorious/0.9.x' into 0.9.x

14 years agoMake OStatusPlugin define push feed rel
Evan Prodromou [Sat, 27 Nov 2010 03:10:18 +0000 (22:10 -0500)]
Make OStatusPlugin define push feed rel

14 years agoMake userxrd work without OStatus enabled
Evan Prodromou [Sat, 27 Nov 2010 03:09:51 +0000 (22:09 -0500)]
Make userxrd work without OStatus enabled

14 years agoMake userxrd part of the default hostmeta
Evan Prodromou [Sat, 27 Nov 2010 02:46:51 +0000 (21:46 -0500)]
Make userxrd part of the default hostmeta

14 years agoMove user xrd action to core and use hooks to extend
Evan Prodromou [Sat, 27 Nov 2010 02:38:38 +0000 (21:38 -0500)]
Move user xrd action to core and use hooks to extend

Moved the Webfinger user XRD action from the OStatus plugin to core.
Added hooks to add OStatus-specific stuff, but kept general stuff in
the core.

14 years agomove xrd and hostmeta out of the OStatus plugin and into core
Craig Andrews [Sun, 5 Sep 2010 21:43:29 +0000 (17:43 -0400)]
move xrd and hostmeta out of the OStatus plugin and into core
add event for setting up hostmeta, and use them in the OStatus plugin

14 years agoRevert "Ticket #2796: don't allow arbitrary overriding of the 'action' class and...
Evan Prodromou [Fri, 26 Nov 2010 16:18:41 +0000 (11:18 -0500)]
Revert "Ticket #2796: don't allow arbitrary overriding of the 'action' class and other parameters pulled from the URL mapper."

This reverts commit 4193a826d3500c1c8771e2a55ca197011fe637c8.

14 years agoUpdate util.min.js for attachment preview on Firefox, Chrome
Brion Vibber [Thu, 25 Nov 2010 01:36:40 +0000 (17:36 -0800)]
Update util.min.js for attachment preview on Firefox, Chrome

14 years agoPreview thumbnails of uploaded image attachments before posting on supporting browsers.
Brion Vibber [Wed, 24 Nov 2010 20:20:25 +0000 (12:20 -0800)]
Preview thumbnails of uploaded image attachments before posting on supporting browsers.

Tested working so far:
* Firefox 3.6 and 4.0 (FileReader -> data URL)
* Chrome 8 (createObjectURL; FileReader also works)

Tested with limited support:
* Safari 5.0.3 (no preview, but we can show type and size)

Tested and known not to support FileAPI, keeps current behavior:
* Opera 11 beta

14 years agoAdd LogFilter plugin: quickie way to filter out/in log output based on priority or...
Brion Vibber [Wed, 24 Nov 2010 18:13:03 +0000 (10:13 -0800)]
Add LogFilter plugin: quickie way to filter out/in log output based on priority or keyword matches. Should be helpful for folks who can't easily adjust their syslog filtering.

14 years agologging tweak for Twitter status ID issue
Brion Vibber [Tue, 23 Nov 2010 17:49:32 +0000 (09:49 -0800)]
logging tweak for Twitter status ID issue

14 years agoFixes for Twitter bridge breakage on 32-bit servers. New "Snowflake" 64-bit IDs have...
Brion Vibber [Tue, 23 Nov 2010 17:28:47 +0000 (09:28 -0800)]
Fixes for Twitter bridge breakage on 32-bit servers. New "Snowflake" 64-bit IDs have become too big to fit in the integer portion of double-precision floats, so to reliably use these IDs we need to pull the new string form now.
Machines with 64-bit PHP installation should have had no problems (except on Windows, where integers are still 32 bits)

14 years agoFacebookBridge - fail gracefully if the user has already deleted a
Zach Copley [Mon, 22 Nov 2010 21:40:47 +0000 (21:40 +0000)]
FacebookBridge - fail gracefully if the user has already deleted a
linked notice on Facebook.

14 years agoUpdate doc comment for Awesomeness plugin
Brion Vibber [Mon, 22 Nov 2010 20:39:38 +0000 (12:39 -0800)]
Update doc comment for Awesomeness plugin

14 years agoTweak regex in Awesomeness plugin
Brion Vibber [Mon, 22 Nov 2010 20:38:47 +0000 (12:38 -0800)]
Tweak regex in Awesomeness plugin

14 years agoMerge commit 'refs/merge-requests/2224' of git://gitorious.org/statusnet/mainline...
Brion Vibber [Mon, 22 Nov 2010 20:31:24 +0000 (12:31 -0800)]
Merge commit 'refs/merge-requests/2224' of git://gitorious.org/statusnet/mainline into int

14 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Mon, 22 Nov 2010 19:13:22 +0000 (11:13 -0800)]
Merge branch 'master' into 0.9.x

14 years agoFixes for delete_status_network.sh:
Brion Vibber [Mon, 22 Nov 2010 19:10:10 +0000 (11:10 -0800)]
Fixes for delete_status_network.sh:
* add some sanity checking: abort on failures instead of plodding through
* add some progress / error output
* fetch the target database server name from the status_network entry and use that to target the DROP DATABASE

Note that database names and other overrides in status_network entry may still not be seen.

14 years agoAdded Awesomeness extension
Jeroen De Dauw [Sat, 20 Nov 2010 14:14:12 +0000 (15:14 +0100)]
Added Awesomeness extension

14 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Sat, 20 Nov 2010 00:18:53 +0000 (16:18 -0800)]
Merge branch 'master' into 0.9.x

14 years agoFix ticket #2700: some numeric IDs were misinterpreted as hex numbers instead of...
Brion Vibber [Sat, 20 Nov 2010 00:12:28 +0000 (16:12 -0800)]
Fix ticket #2700: some numeric IDs were misinterpreted as hex numbers instead of strings when '0x123' passed in.

Switched from is_numeric() to a custom self::is_decimal() which is more strict.
This makes our behavior match Twitter's API a bit better, so eg this:

  http://identi.ca/api/statuses/home_timeline/0x6d686b.xml

should now be equivalent to:

  http://identi.ca/api/statuses/home_timeline.xml?screen_name=0x6d686b

instead of:

  http://identi.ca/api/statuses/home_timeline.xml?user_id=7170155

14 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 23:53:29 +0000 (15:53 -0800)]
Merge branch 'master' into 0.9.x

14 years agoTicket #2724: gracefully handle attempts to delete or fave/unfave a remote Twitter...
Brion Vibber [Fri, 19 Nov 2010 23:51:08 +0000 (15:51 -0800)]
Ticket #2724: gracefully handle attempts to delete or fave/unfave a remote Twitter notice if a failure occurs.

Most annoying error case being where the notice was already faved or deleted on Twitter! :)
Such errors will now just fail out and log a note to the syslog -- the rest of what we were doing will continue on unhindered, so you can still delete, favorite, etc and it just won't sync the info over in that case.

14 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 23:38:20 +0000 (15:38 -0800)]
Merge branch 'master' into 0.9.x

14 years agoTicket #2796: don't allow arbitrary overriding of the 'action' class and other parame...
Brion Vibber [Fri, 19 Nov 2010 23:30:52 +0000 (15:30 -0800)]
Ticket #2796: don't allow arbitrary overriding of the 'action' class and other parameters pulled from the URL mapper.

This protects against oddities such as manual invocation of the ClientError action, which can spoof error messages.

14 years agoTicket #2797: replace addslashes() with explicit escape calls on the DB objects
Brion Vibber [Fri, 19 Nov 2010 23:06:26 +0000 (15:06 -0800)]
Ticket #2797: replace addslashes() with explicit escape calls on the DB objects

14 years agoMerge branch 'master' into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 22:03:59 +0000 (14:03 -0800)]
Merge branch 'master' into 0.9.x

14 years agoTicket #1987: support since_id on API notice search methods.
Brion Vibber [Fri, 19 Nov 2010 22:00:22 +0000 (14:00 -0800)]
Ticket #1987: support since_id on API notice search methods.

max_id is not yet implemented, as it'll need support added to the search backends. (since_id we get 'for free' by just cropping off the list, it'll do for now)

14 years agoMerge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 20:44:43 +0000 (12:44 -0800)]
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x

14 years agoTicket #2441: fix deletion of avatars when a profile is deleted.
Brion Vibber [Fri, 19 Nov 2010 20:39:07 +0000 (12:39 -0800)]
Ticket #2441: fix deletion of avatars when a profile is deleted.

Code was doing a batch call to $avatar->delete() which fails to properly engage the file deletion code. Calling the existing profile->delete_avatars() function deletes them individually, which makes it all work nice again.

14 years agoDrop PEAR HTTP_Request library -- no longer used since Services_oEmbed was dropped.
Brion Vibber [Fri, 19 Nov 2010 20:15:28 +0000 (12:15 -0800)]
Drop PEAR HTTP_Request library -- no longer used since Services_oEmbed was dropped.

(HTTP_Request2 is separate and is widely used. Net_URL is also used separately by Net_URL_Mapper.)

14 years agoMerge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 20:00:42 +0000 (12:00 -0800)]
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x

14 years agoTicket #2899: clean up inbox/outbox DM form a bit:
Brion Vibber [Fri, 19 Nov 2010 19:56:03 +0000 (11:56 -0800)]
Ticket #2899: clean up inbox/outbox DM form a bit:
- "To" drop-down list now defaults to showing "Select recipient:" instead of the first person on your list, reducing liklihood of accidentally sending a message to the wrong person.
- When there are no mutual subscribers to send to, instead of an empty list the list now shows 'No mutual subscribers.'

In both cases, attempting to send when the default is selected displays an error message.
I'm not disabling form elements in part because our themes right now don't show disabled button state correctly; we might want to tighten that up a bit more once fixed.

14 years agoMerge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Fri, 19 Nov 2010 18:43:20 +0000 (10:43 -0800)]
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x

14 years agoAutomatically make Facebook admin panel available if the FacebookBridge
Zach Copley [Fri, 19 Nov 2010 05:55:43 +0000 (21:55 -0800)]
Automatically make Facebook admin panel available if the FacebookBridge
plugin is installed.

14 years agoscripts/deletegroup.php -- basic CLI script to delete a group by id or local nickname...
Brion Vibber [Thu, 18 Nov 2010 22:40:05 +0000 (14:40 -0800)]
scripts/deletegroup.php -- basic CLI script to delete a group by id or local nickname. Like deleteuser.php, this can be used in batch runs by providing the -y override.

14 years agoFix regression in PopularNoticeSection: tag parameter was broken, causing sidebar...
Brion Vibber [Thu, 18 Nov 2010 22:30:00 +0000 (14:30 -0800)]
Fix regression in PopularNoticeSection: tag parameter was broken, causing sidebar on tag pages to show untagged favorites.

14 years agoFacebook: Add needed perms to plain login URL
Zach Copley [Thu, 18 Nov 2010 21:34:41 +0000 (13:34 -0800)]
Facebook: Add needed perms to plain login URL

14 years agoFix name of Facebook Bridge plugin
Zach Copley [Thu, 18 Nov 2010 21:28:49 +0000 (13:28 -0800)]
Fix name of Facebook Bridge plugin

14 years agoMerge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Brion Vibber [Thu, 18 Nov 2010 00:13:40 +0000 (16:13 -0800)]
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x

14 years agoPartial fix for tickets #2194, #2393: Workaround for Meteor breaking AJAX error respo...
Brion Vibber [Wed, 17 Nov 2010 22:24:35 +0000 (14:24 -0800)]
Partial fix for tickets #2194, #2393: Workaround for Meteor breaking AJAX error responses returned on posting new notices. Fixes things in Firefox 4, but Safari 5 and Chrome 8 still don't return data... either on success or failure! Sigh.

The Meteor realtime plugin sets document.domain to the common prefix between the main server and the Meteor server's hostnames, which overrides the same-origin controls on JavaScript DOM access so the two parts of the app can speak to each other.
This unfortunately causes "fun" side effects for XMLHTTPRequest access to the main domain... if the new domain doesn't match the actual host (eg 'status.net' instead of 'brion.status.net') then we can't access the XHR's responseXML attribute, which holds a DOM tree of the parsed XML return data.
As a workaround, if we can't get at the contents there, we'll parse a fresh DOM tree in the local context from the responseText property, which remains available.

In the longer term, recommend retooling the realtime stuff so it's not fiddling with document.domain. It could also be an issue as it could allow local JavaScript XSS attacks to migrate to subdomains in other open windows.

14 years agoMerge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Zach Copley [Wed, 17 Nov 2010 22:16:08 +0000 (22:16 +0000)]
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x

14 years agoRemove dumb debugging statement
Zach Copley [Wed, 17 Nov 2010 22:15:30 +0000 (22:15 +0000)]
Remove dumb debugging statement

14 years agoFacebook: Gracefully handle disconnection
Zach Copley [Wed, 17 Nov 2010 21:53:56 +0000 (21:53 +0000)]
Facebook: Gracefully handle disconnection

14 years agoAdd $config['attachments']['process_links'] to allow disabling processing of mentione...
Brion Vibber [Wed, 17 Nov 2010 21:03:59 +0000 (13:03 -0800)]
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.

This option may be useful for intranet sites that don't have direct access to the internet, as they may be unable to successfully fetch those resources.

14 years agoinclude full updated source of JSON2 and use updated minified version
Evan Prodromou [Wed, 17 Nov 2010 17:34:04 +0000 (12:34 -0500)]
include full updated source of JSON2 and use updated minified version

14 years agouse minified version of jquery.cookie.js
Evan Prodromou [Wed, 17 Nov 2010 17:32:11 +0000 (12:32 -0500)]
use minified version of jquery.cookie.js

14 years agouse minified version of jquery.form.js
Evan Prodromou [Wed, 17 Nov 2010 17:31:35 +0000 (12:31 -0500)]
use minified version of jquery.form.js

14 years agoupgrade jquery.form.js
Evan Prodromou [Wed, 17 Nov 2010 17:30:55 +0000 (12:30 -0500)]
upgrade jquery.form.js

14 years agouse minified version of meteorupdater.js
Evan Prodromou [Wed, 17 Nov 2010 17:22:02 +0000 (12:22 -0500)]
use minified version of meteorupdater.js

14 years agouse minified version of realtime.js
Evan Prodromou [Wed, 17 Nov 2010 17:21:01 +0000 (12:21 -0500)]
use minified version of realtime.js

14 years agoMerge branch '0.9.x' into minifyjs
Evan Prodromou [Wed, 17 Nov 2010 17:19:19 +0000 (12:19 -0500)]
Merge branch '0.9.x' into minifyjs

14 years agomove EndScriptMessages event into if block
Evan Prodromou [Wed, 17 Nov 2010 17:19:01 +0000 (12:19 -0500)]
move EndScriptMessages event into if block

14 years agoUse minified version of util.js
Evan Prodromou [Wed, 17 Nov 2010 17:16:50 +0000 (12:16 -0500)]
Use minified version of util.js

14 years agoupgrade to JQuery 1.4.4
Evan Prodromou [Wed, 17 Nov 2010 17:14:50 +0000 (12:14 -0500)]
upgrade to JQuery 1.4.4

14 years agoUse session token protection on oEmbed proxy action for LinkPreview... and commit...
Brion Vibber [Tue, 16 Nov 2010 23:36:53 +0000 (15:36 -0800)]
Use session token protection on oEmbed proxy action for LinkPreview... and commit the file *sigh*