summaryrefslogtreecommitdiff
path: root/actions/userrss.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-10-12 22:36:17 +0000
committerBrion Vibber <brion@pobox.com>2009-10-16 14:46:53 -0700
commit4855cb58daf374404bec9489769cc57431e347f4 (patch)
tree0afca3ee41e4b310784dc395c904c99ebdc21bb3 /actions/userrss.php
parent77afd6c3448335b3a46c98c78fbbda733fc5d586 (diff)
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!
Diffstat (limited to 'actions/userrss.php')
0 files changed, 0 insertions, 0 deletions