Zach Copley [Thu, 12 Nov 2009 18:45:14 +0000 (10:45 -0800)]
Merge branch '0.8.x'
* 0.8.x:
Removed extra showScript() call at the bottom of the document. 0.8.x
Removed old comments
Disable debug mode (so there are no messages written to the javascript console)
Resetup the ajaxification for replies and favors after inf. scrolling
Refactored the favorite button ajaxification to a separate function
Bug 1969: rebuild corrupted l10n files which caused all UI strings to be shown as nulls
Sarven Capadisli [Thu, 12 Nov 2009 10:37:43 +0000 (10:37 +0000)]
Removed extra showScript() call at the bottom of the document. 0.8.x
is using <head> for scripts whereas 0.9.x puts it before </body>. This
also fixes the duplicate posts
Craig Andrews [Wed, 11 Nov 2009 20:38:28 +0000 (15:38 -0500)]
Resetup the ajaxification for replies and favors after inf. scrolling
Made the selector much more specific, so it only works on pages that have notices
Brion Vibber [Fri, 6 Nov 2009 13:31:39 +0000 (14:31 +0100)]
console.php terminal script provides interactive PHP console in StatusNet environment, handy for testing!
Uses readline for line input editing if available; falls back to bash+readline if not native, and takes fgets() in worst case.
Currently a bit awkward in that each input line is parsed separately, so loops and function defs have to be squished to one line.
We can't have a user named 'notice' because that would interfere with
URLs like /notice/1234. However, there is no file named 'notice' in
the Web root.
If there were a way to automatically pull out the virtual paths in the
root dir, this may make sense. Until then, we keep track here.
Sarven Capadisli [Fri, 30 Oct 2009 21:44:31 +0000 (21:44 +0000)]
IE has some issue with notices that are sent with file attachments. It
doesn't like the XHR response with XHTML DTD. New notices without the
file attachment work fine.
The rendered content (the anchor for the file attachment link) doesn't
appear to be the issue.
To fix this problem, I removed the XHTML DTD line from newnotice's XHR
response. This is unnecessary for text/xml outputs that's intended
for XHR responses any way. It just happens to fix an IE issue.
Still a mystery to me as to why it is particular to notices with file
attachments.
Brion Vibber [Mon, 12 Oct 2009 22:36:17 +0000 (22:36 +0000)]
Workaround for Facebook data store API behavior regression, fixes saving
of empty notice prefix text in facebook settings.
Filed bug upstream at http://bugs.developers.facebook.com/show_bug.cgi?id=7110
Per documentation, saving a pref value of "" or "0" will delete the pref key:
http://wiki.developers.facebook.com/index.php/Data.setUserPreference
which used to do what we want... Now Facebook throws back an error
"Parameter value is required" when we do this. Workaround appends a
space to empty string or "0" at save time, then trims the string when
we load it.
The input string was already trimmed at pref save time, so this won't
alter any user-visible behavior.
Thanks to ^demon in #mediawiki for pointing out the behavior regression
after testing the identi.ca Facebook app!
Brion Vibber [Mon, 12 Oct 2009 22:36:17 +0000 (22:36 +0000)]
Workaround for Facebook data store API behavior regression, fixes saving
of empty notice prefix text in facebook settings.
Filed bug upstream at http://bugs.developers.facebook.com/show_bug.cgi?id=7110
Per documentation, saving a pref value of "" or "0" will delete the pref key:
http://wiki.developers.facebook.com/index.php/Data.setUserPreference
which used to do what we want... Now Facebook throws back an error
"Parameter value is required" when we do this. Workaround appends a
space to empty string or "0" at save time, then trims the string when
we load it.
The input string was already trimmed at pref save time, so this won't
alter any user-visible behavior.
Thanks to ^demon in #mediawiki for pointing out the behavior regression
after testing the identi.ca Facebook app!
Brion Vibber [Tue, 13 Oct 2009 18:55:16 +0000 (11:55 -0700)]
Pull all localization updates from the current Pootle incarnation before we rebuild it:
* el_GR - Greek localization updates
* he_IL - one additional Hebrew message, removed two fuzzies that gettext doesn't like
* is_IS - added new Icelandic localization file from Pootle
* nb_NO - Norwegian Bokmål updates
* zh_CN - a few Chinese message updates
Brion Vibber [Tue, 13 Oct 2009 16:54:57 +0000 (16:54 +0000)]
Include long-form attachment URL in notice if URL shortening is disabled.
Previously, the attachment URL would simply be dropped when shortening returned false instead of a short URL... the attachment was present if you clicked through to notice details but didn't appear in the timeline, making it nigh-impossible to see the attachment.
Brion Vibber [Tue, 13 Oct 2009 16:54:57 +0000 (16:54 +0000)]
Include long-form attachment URL in notice if URL shortening is disabled.
Previously, the attachment URL would simply be dropped when shortening returned false instead of a short URL... the attachment was present if you clicked through to notice details but didn't appear in the timeline, making it nigh-impossible to see the attachment.