summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-04-02Ticket 2271: extra whitespace in underlined link for username in notice listsBrion Vibber
Switching to a raw() output for the <span> of the nickname removes the extra whitespace and fixes display.
2010-03-30Ticket #1281: JID validation now more or less follows spec instead of ↵Brion Vibber
calling e-mail validator Basic splitting/validation code submitted via http://status.net/wiki/XMPP/JID_validation -- Copyright 2009 Patrick Georgi <patrick@georgi-clan.de> Licensed under ISC-L, which is compatible with everything else that keeps the copyright notice intact. Added PEAR Net_IDNA package to extlib to handle IDN normalization (also used by Validate's email verifier if present). * added test suite, supplemented my own test cases with JID validation and normalization test cases from libpurple * follows XMPP rules for validation of name part * fixes for normalization with non-ASCII names * will do domain checks if $config['email']['check_domain'] is on, checking for an XMPP-server SRV record or any lookup. (We don't actually need to ping those direct though.) * some more obscure stringprep validation rules aren't quite followed yet, but we err on the side of permissiveness. * we still don't actually let you save your address with a resource on it, as we strip resources when looking up users who've sent us presence or message updates. I would recommend saving the outgoing resource as a separate field if/when we add that..?
2010-03-30Quick fixes for grouplistall:Brion Vibber
* respect count instead of listing all groups * respect page parameter * don't spew notice on undefined $id * don't spew notice on undefined $group->homepage_url (dropped the element since there's nothing to go in it)
2010-03-29Tweak to Eugene Crosser's patch to make transactions and acks configurable; ↵Brion Vibber
disabling them gets basic message delivery working under MorbidQ, and may help with RabbitMQ etc. I swapped the settings from negative to positive ($config['queue']['stomp_transactions'] = false rather than $config['queue']['stomp_no_transactions'] = true), gave them defaults (both on for best ActiveMQ experience), and added notes to the README about configuring them.
2010-03-29Make stomp queue manager work with basic serversEugene Crosser
Signed-off-by: Eugene Crosser <crosser@average.org>
2010-03-29Merge branch 'master' into testingBrion Vibber
Conflicts: plugins/Blacklist/BlacklistPlugin.php
2010-03-29Renamed HTTPResponse class to StatusNet_HTTPResponse to avoid conflict with ↵Brion Vibber
PECL HTTP extension. The class isn't referenced by name by any other code I can see so this should have no side effects.
2010-03-29Add $config['db']['annotate_queries'] option to include caller ID comments ↵Brion Vibber
into queries. Comment can then be seen in process list, slow query logs on the server, aiding in tracking down unexpected slow queries. SELECT /* queuedaemon.php Ostatus_profile->processPost */ * FROM notice WHERE ( notice.uri = 'http://stormcloud.local/mublog2/notice/479' ) INSERT /* POST Notice::saveNew */ INTO notice (profile_id , content ....
2010-03-28update README and version number0.9.1Evan Prodromou
2010-03-27move check for bad IDs from activityobject to activity and make simplerEvan Prodromou
2010-03-26Return an http auth error, when a client sends in an invalid auth user, even ↵Zach Copley
when http auth is not required.
2010-03-26Return an http auth error, when a client sends in an invalid auth user, even ↵Zach Copley
when http auth is not required.
2010-03-25Merge branch 'master' of git@gitorious.org:statusnet/mainlineBrion Vibber
2010-03-25Restore lost addition of inline HTML attachment display.Brion Vibber
2010-03-25version number and codenameEvan Prodromou
2010-03-25Using hCard label instead of location. Matches userprofile.Sarven Capadisli
2010-03-25Updated tag list output in subscriptions list. Matches userprofile.Sarven Capadisli
2010-03-25Moved print inside base stylesheet using media rules. One less HTTP GET.Sarven Capadisli
2010-03-25Updated 'more' anchor for attachments to do an XHR GETBrion Vibber
Conflicts: lib/attachmentlist.php plugins/OStatus/classes/Ostatus_profile.php Merge tried to delete things that it seems it shouldn't, very confusing order. Hope rest of the cherry-picking isn't a problem.
2010-03-25Using rel=external instead of class=external for jOverlay title linkSarven Capadisli
2010-03-25Added rel=external to geo location linkSarven Capadisli
2010-03-25Assigned an identifier for the representative user and group profileSarven Capadisli
2010-03-25Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testingEvan Prodromou
2010-03-24Fix for API group methods, caused failure or output corruption when pulling ↵Brion Vibber
up local groups by name in api/statusnet/groups/is_member.json/xml
2010-03-23Merge branch 'master' of git@gitorious.org:statusnet/mainline into testingBrion Vibber
2010-03-23Consistently send Profiles into Fave::addNew()Brion Vibber
2010-03-23Don't add PHPSESSID parameter onto notice and conversation URIs if we save a ↵Brion Vibber
notice during a session override. This was being triggered by welcomebot messages created at account creation time, then propagated through replies.
2010-03-23change router to allow hooking path connectionsEvan Prodromou
2010-03-22Some initial media parsingZach Copley
- Activity now returns a list of activity objects - Processing of photo objects
2010-03-22Log backtraces for non-ClientException exceptions caught at the top-level ↵Brion Vibber
handler.
2010-03-22Replace the "give up and dump object" attachment view fallback with a ↵Brion Vibber
client-side redirect to the target URL, which will at least be useful.
2010-03-22Replace the "give up and dump object" attachment view fallback with a ↵Brion Vibber
client-side redirect to the target URL, which will at least be useful.
2010-03-21Pull <atom:author> info as well as <activity:actor> when we have an ↵Brion Vibber
old-style ActivityStreams feed. This fixes subscription setup for Cliqset feeds, which currently have a bogus activity:actor/atom:id but a good atom:author/atom:uri
2010-03-20correct creation of avatar links for RSS and Posterous elementsEvan Prodromou
2010-03-20move atom category to its own file, tooEvan Prodromou
2010-03-20special-case Posterous author element for activity actorEvan Prodromou
2010-03-20Move activity classes to their own filesEvan Prodromou
Moved the various classes used by the Activity class to their own files. There were >10 classes in the same file, with around 1500 lines in the file. Just too big. This change makes autoloading work for these classes, so also removed the hard require in lib/common.php.
2010-03-20allow html content in summary and clean it out of titleEvan Prodromou
2010-03-20rename $rss to $channel to prevent misunderstandingEvan Prodromou
RSS feeds have the format <rss><channel><item/><item/><item/></channel></rss>. The element named $rss was actually the <channel> element, so I renamed the variable so I wouldn't hurt my head.
2010-03-19make deriving a subject from an RSS channel workEvan Prodromou
2010-03-19move ActivityObject constructors from Activity to ActivityObjectEvan Prodromou
2010-03-19only search elements for linksEvan Prodromou
2010-03-19Parse RSS items as activitiesEvan Prodromou
First steps to parsing RSS items as activities. RSS feeds don't seem to have enough data to make good remote profiles, but this may work with some "hints".
2010-03-18OStatus discover fixes:Brion Vibber
* Subscription::start was sometimes passing users instead of profiles to hooks, which broke OStatus subscription notifications; now normalizing to profiles for processing. * H-card parsing would trigger a lot of PHP warnings and notices in hKit. Now suppressing warnings and notices for the duration of the call to keep them out of output when display_errors is on. * H-card parsing would trigger a PHP fatal error if the source page was not well-formed XML and Tidy was not present on the system. Switched normalization to use the PHP DOM module which is always present, as we have no need for Tidy's extra features here. * Trying to fetch avatars from Google profiles failed and triggered a PHP warning due to the relative URL not being resolved during h-card parsing. Now passing profile page URL into hKit by sneaking a <base> tag in while we normalize the HTML source. * Profile pages without a "Link" header could trigger PHP notices due to a bad NULL -> array(NULL) conversion in LinkHeader::getLink(). Now checking that there was a return value before converting single return value into array.
2010-03-18Remove xpm support (no one really uses it, and IMAGETYPE_XPM is undefined, ↵Craig Andrews
causing warnings) Remove erroneous call to unlink in the constructor
2010-03-18Merge branch 'master' of git@gitorious.org:statusnet/mainline into testingBrion Vibber
2010-03-18new exception class for when a user has no profileEvan Prodromou
2010-03-17Workaround for HTTP authentication in the API when running PHP as ↵Brion Vibber
CGI/FastCGI. Example rewrite lines added as comments in htaccess.sample, API tweaked to accept alternate environment var form.
2010-03-16Pull back for now on switch of PEAR error mode to exceptions; seems to ↵Brion Vibber
trigger out exceptions at various times we don't want them. For instance this was throwing an exception for DB_DataObject::staticGet when there's no match... definitely not what we want when all our code expects to get a nice null. Example of this causing trouble: http://gitorious.org/statusnet/mainline/merge_requests/131 Revert "Don't attempt to retrieve the current user from the DB while processing a DB error" This reverts commit 68347691b0c7fb3f81415abd7fcdc5aec85cc554. Revert "Use PHP exceptions for PEAR error handling." This reverts commit d8212977ce7f911d4f9bd6e55f94aea059a86782.
2010-03-15Throw an exception if we receive a document instead of a feed's root elementZach Copley