summaryrefslogtreecommitdiff
path: root/lib/activity.php
AgeCommit message (Collapse)Author
2010-04-10Add translator documentation.Siebrand Mazeland
2010-03-27move check for bad IDs from activityobject to activity and make simplerEvan Prodromou
2010-03-22Some initial media parsingZach Copley
- Activity now returns a list of activity objects - Processing of photo objects
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-15Throw an exception if we receive a document instead of a feed's root elementZach Copley
2010-03-15Ticket #2242: fix reading of inline XHTML content in Atom feeds for OStatus ↵Brion Vibber
input. Lookup of the <div> needed to check for the XHTML namespace.
2010-03-14give preference to rel="photo" (per latest ActivityStreams spec), but still ↵James Walker
support rel="avatar" for compat
2010-03-13* wrong param order to in_arrayJames Walker
* in getContent() if "type" isn't set, assume text (per atom spec)
2010-03-12Scrub all atom output with common_xml_safe_str()Zach Copley
2010-03-04Merge branch 'testing'Brion Vibber
2010-03-03Temp fix for problem getting actor from PuSH updates where actor is only ↵Zach Copley
specified in subject
2010-03-03Merge branch 'testing' of git@gitorious.org:statusnet/mainlineBrion Vibber
Conflicts: plugins/OStatus/OStatusPlugin.php
2010-03-02OStatus: save file records for enclosuresBrion Vibber
Also stripping id from foreign HTML messages (could interfere with UI) and disabled failing attachment popup for a.attachment links that don't have a proper id, so you can click through instead of getting an error. Issues: * any other links aren't marked and saved * inconsistent behavior between local and remote attachments (local displays in lightbox, remote doesn't) * if the enclosure'd object isn't referenced in the content, you won't be offered a link to it in our UI
2010-03-02OStatus fix: look for <link>s in the current element's children, not in all ↵Brion Vibber
its descendants. Was breaking notice URL transfer, pulling a profile link by mistake.
2010-02-25Merge branch 'testing' of gitorious.org:statusnet/mainline into testingBrion Vibber
2010-02-25OStatus: pull best-sized avatar image (96x96 if found, otherwise largest, ↵Brion Vibber
otherwise if none labeled takes the first)
2010-02-25Set avatar height correctlyZach Copley
2010-02-25Add lots of fun avatars to our Atom outputZach Copley
2010-02-25Merge branch 'testing' of gitorious.org:statusnet/mainline into testingZach Copley
* 'testing' of gitorious.org:statusnet/mainline: Not sure how this ended up in wrong-cased dir... OStatus: fix remote groups to work with new user_groups/local_groups split. Conflicts: classes/User_group.php
2010-02-25Rationalize group activity stuffZach Copley
2010-02-25OStatus: fix remote groups to work with new user_groups/local_groups split.Brion Vibber
- fix <activity:subject> generation so we get the profile info (what's available so far) - use id instead of nickname for group join/leave forms so we can join/leave remote groups while the rest of the groups UI remains limited to local groups (plugins are responsible for making sure remote notifications and permission checks are done) - fix remote notification when joining group through OStatus's remote subscribe form
2010-02-25OStatus: save categories from the Atom entry as hashtags.Brion Vibber
2010-02-24Merge branch 'testing' of gitorious.org:statusnet/mainline into testingZach Copley
* 'testing' of gitorious.org:statusnet/mainline: Merge StatusNet core localization updates from 0.9.x branch Fix update_po_templates.php to support the plural and context variants of _m() in plugins Drop HTMLPurifier; we don't need its extra capabilities and we're already using htmLawed which is lighter-weight. OStatus: handle update-profile Salmon pings Revert "Updated jQuery Form Plugin from v2.17 to v2.36" OStatus: disable HTMLPurify cache unless we've configured a writable path for it.
2010-02-24Populate more profile information when doing a remote subscribeZach Copley
2010-02-24OStatus: disable HTMLPurify cache unless we've configured a writable path ↵Brion Vibber
for it. Updated plugin README with available config options. Cleanup for a bad element fallback lookup in Activity
2010-02-24- break OMB profile update pings to a background queueBrion Vibber
- add event hooks to profile update pings - send Salmon pings with custom update-profile event to OStatus subscribees and groups (subscribers will see it on your next post) - fix OStatus queues with overlong transport names, should work on DB queues now - Ostatus_profile::notifyActivity() and ::notifyDeferred() now can take XML, Notice, or Activity for convenience
2010-02-24Include <author> with actor ID and name in Activity::asString(); fixes ↵Brion Vibber
Salmon signature on OStatus unsub pings
2010-02-23Add PoCo parsing and some other fixes.Zach Copley
2010-02-23Add poco:displayName to Atom output for person objectZach Copley
2010-02-23OStatus: do PuSH subscription setup from subscribe/join event hooks, so ↵Brion Vibber
resubscribing directly from a profile/group list works correctly if there aren't active subscriptions at the moment.
2010-02-22Add activity.php to common includesZach Copley
2010-02-22Merge branch 'rationalize-activity' into testingZach Copley
* rationalize-activity: Move ActivityObject and related stuff to core Add PoCo bits, avatar link, geo point, etc. to person activity obj output
2010-02-22Move ActivityObject and related stuff to coreZach Copley