summaryrefslogtreecommitdiff
path: root/plugins/OStatus/classes/Ostatus_profile.php
AgeCommit message (Collapse)Author
2010-12-17move code to get an author object for a feed to a library from Ostatus_profileEvan Prodromou
2010-12-15Cleaner code to avoid a couple PHP notices from accessing uninitialized ↵Brion Vibber
variables in ostatus profile discovery (these cases hit checking diaspora accounts)
2010-11-02i18n/L10n fixes and translator documentation addded/updated.Siebrand Mazeland
2010-11-02Tossing in a basic i18n message export to script code. Plugins can hook ↵Brion Vibber
StartScriptMessage/EndScriptMessage, or directly add needed mappings in Action::getScriptMessages(). Exported entries are accessible as SN.msg(key) at runtime. StatusNet core code now sets the tooltip text on .attachment.more links when they receive their attachment-expansion magic; this will override the hardcoded tooltip text saved from OStatus plugin when displaying timelines in the web UI.
2010-10-13Clean up remote avatar temporary files if we fail before saving them into ↵Brion Vibber
avatars directory (OMB core, OStatus, WikiHowProfile, YammerImport)
2010-10-08Normalize execution guards on OStatus php files; mostly helps cut down on ↵Brion Vibber
annoying 'class not found' errors when something spiders the dirs. :P
2010-09-30Always specify UTF-8 targt charset for html_entity_decode(); default is ↵Brion Vibber
8-bit ISO-8859-1 which causes things to break when we later pass them through things that expect to work with UTF-8. For instance, running through preg_replace() with the /u option results in NULL, leading to problems with OStatus and SubMirror generating their plaintext versions and doing length-cropping.
2010-09-22Merge branch '0.9.x' into activityexportEvan Prodromou
Conflicts: plugins/OStatus/OStatusPlugin.php
2010-09-21make some static functions public for OStatus_profileEvan Prodromou
2010-09-19* i18n/L10n updateSiebrand Mazeland
* translator comments added * remove superfluous whitespace
2010-09-16Ticket #2731: Fix for regression in posting to remote groups (regression in ↵Brion Vibber
2d4e0693c88bb8cad47f917db3ac5ecfacf28619) Changes in 2d4e0693c88bb8cad47f917db3ac5ecfacf28619 changed Ostatus_profile::filterReplies() (which sorts out the local, remote, and group recipients on incoming remote messages) from checking for remote profiles with a safe call to Ostatus_profile::staticGet() to calls through Ostatus_profile::ensureProfileURL() and Ostatus_profile::ensureWebfinger(), which throw exceptions and thus abort processing. Since this was done before checking for local groups, the filter would fail when the ensure* functions determined it was looking at a local group and rightfully refused to create a remote group profile for it. Changing the calls to the ensure* functions was done so we can record remote reply recipients for future reply-to-reply processing (the staticGet() call was a cheaper way to do a lookup when we knew we only actually had to process groups that somebody signed up to); most important fix is simply to actually check for the exception! :) Here I'm changing the order of processing so we do the local group lookup first -- where it's nice and safe -- and then when we do the remote checks, we'll go ahead and gracefully skip that entry if the full remote lookup fails, so we'll still process any following recipients.
2010-09-07Fix for #2663: fix for original/96px-size avatars getting saved with bad ↵Brion Vibber
permissions, causing failure to see images if background queues are different user from web server. The original-size file is now forced to 0644 (all-readable), which should help. Not sure this is 100% ideal, but it's better than 0600! (The other sizes were being created in other code and had sane read perms already.) Watch out for similar issues in Twitter bridge etc; avatar import code should get cleaned up and consolidated.
2010-09-03* i18n/L10n updates and FIXMEs addedSiebrand Mazeland
* whitespace fixes
2010-09-02Merge branch 'swat0' into 0.9.xEvan Prodromou
2010-09-01correctly return oprofile from Ostatus_profile::ensureProfileURI()Evan Prodromou
2010-09-01save URIs of remote profiles marked for attentionEvan Prodromou
2010-08-16Merge branch 'testing'Brion Vibber
Conflicts: plugins/OStatus/classes/Ostatus_profile.php
2010-08-13Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xEvan Prodromou
Conflicts: plugins/OStatus/classes/Ostatus_profile.php
2010-08-13add hooks to allow plugins to handle different kinds of activitiesEvan Prodromou
2010-08-13Fixes for RSS subscriptions: accept posts with no ActivityStreams ↵Brion Vibber
object-type set; be more liberal about accepting posts from feeds where the author info doesn't match (we'll post under the feed's profile and just not try to update the profile info).
2010-08-13Fixes for RSS subscriptions: accept posts with no ActivityStreams ↵Brion Vibber
object-type set; be more liberal about accepting posts from feeds where the author info doesn't match (we'll post under the feed's profile and just not try to update the profile info).
2010-08-10Fix for regression with OStatus mention processing (duplicated new and old ↵Brion Vibber
style lead to trying to save a reply entry twice).
2010-08-10Initial support for third-party fallback hub such as Superfeedr for feed ↵Brion Vibber
subscriptions. If set up, this hub will be used to subscribe to feeds that don't specify a hub of their own. Assumes that the fallback hub will, in fact, handle polling and updates for any feed we throw at it! Authentication may be specified for the fallback hub. Example: $config['feedsub']['fallback_hub'] = 'https://superfeedr.com/hubbub'; $config['feedsub']['hub_user'] = 'abcd'; $config['feedsub']['hub_pass'] = 'ckcmdkmckdmkcdk'; Also: * Fix for WordPress-RSS-via-Superfeedr-Atom; if we have <author> info but no ID from a native ActivityStreams actor, don't freak out in the low-level processing code that checks for identity matches. * enhanced messages for low-level FeedSub exceptions if they make it to outside display
2010-08-06OStatus/FeedSub: tweaked PuSH feed garbage collection so other plugins can ↵Brion Vibber
declare usage of a low-level feed or an OStatus profile besides profile subscriptions & group memberships. SubMirror: redid add-mirror frontend to accept a feed URL, then pass that on to OStatus, instead of pulling from your subscriptions. Profile: tweaked subscriberCount() so it doesn't subtract 1 for foreign profiles who aren't subscribed to themselves; instead excludes the self-subscription in the count query. Memcached_DataObject: tweak to avoid extra error spew in the DB error raising Work in progress: tweaking feedsub garbage collection so we can count other uses
2010-04-21Fix exceptions with bad gravatar URLsEvan Prodromou
2010-04-06Handle attempt to subscribe a local user via their remote webfinger ↵Brion Vibber
reference more gracefully. The ensure* family of functions will now return an OStatusShadowException in this case, which gives us a pleasant error message instead of a giant exception backtrace when you do 'sub somebody@this.local.server'. Can be extended later to allow actually using the local profile, since we could figure it out.
2010-03-29Include meta charset header in saved HTML file for long OStatus messages; ↵Brion Vibber
without, DOMDocument::loadHTML assumed Latin-1 instead of UTF-8.
2010-03-25Tweak to OStatus long message cropping: use original source notice URL for ↵0.9.1rc1Brion Vibber
the link in the text version, don't shorten the link for the HTML so we can append params to it in JS. Conflicts: plugins/OStatus/classes/Ostatus_profile.php
2010-03-25Add doc comments on saveHTMLFile; drop the extra <div> wrapping the contents ↵Brion Vibber
to make it easier to extract without getting extra markup.
2010-03-25Using &#8230; (hellip) instead of "more" for link textSarven 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-22Fix reference. Look at the first ActivityObject in the list.Zach Copley
2010-03-22Some initial media parsingZach Copley
- Activity now returns a list of activity objects - Processing of photo objects
2010-03-22ignore unrecognized object typesEvan Prodromou
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-21Accept 'tag' and other non-http id URIs in ↵Brion Vibber
Ostatus_profile::getActivityObjectProfileURI(). (If there's not a valid ID we fall back to the link, which we do still validate as http/s.)
2010-03-21OStatus profile setup cleanupBrion Vibber
* drop OStatusPlugin::localProfileFromUrl(), we can just look up on user.uri * clean up a few edge cases that returned null through Ostatus_profile::ensure* code paths, now throws clear exception when we can't find a feed from the given profile url * add some doc comments on the ensure* methods
2010-03-21only use Posterous author data if it matches the profile URLEvan Prodromou
2010-03-20use Posterous element if available for RssChannel discoveryEvan Prodromou
2010-03-20use feedEl for discoveryEvan Prodromou
2010-03-20fall back to summary or title if content not availableEvan Prodromou
2010-03-20Allow PuSH posts without author informationEvan Prodromou
Superfeedr (sp.?) posts entries without author information. We can assume that this is intended to be by the original author. Re-structured the checks for entries that come in by PuSH so they can either have no author or an empty author, but not a different author.
2010-03-20handle RSS as well as Atom in Ostatus push hitsEvan Prodromou
2010-03-20Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testingEvan Prodromou
2010-03-20try to make a nickname from the user profile url before using the URIEvan Prodromou
2010-03-19OStatus: be a little laxer about attempts to start/stop PuSH subscriptions ↵Brion Vibber
that were left in an inconsistent state. Instead of aborting, we'll try to reconfirm the sub/unsub, which once confirmed will replace whatever the previous state was on the server side.
2010-03-19ensure from an RSS channelEvan Prodromou
2010-03-19Validate OStatus avatar URL before fetching.Brion Vibber
2010-03-18Fix notice warning about unused var -- was renamed during refactoring.Brion Vibber
2010-03-18Fix for xmpp/sms notification options appearing to be disabled on new ↵Brion Vibber
subscriptions. Base problem is that our caching-on-insert interferes with relying on column default values; the cached object is missing those fields, so they appear to be empty (null) when the object is retrieved from cache. Now explicitly setting them when inserting subscriptions, and cleaned up some code that had alternate code paths. May also have made auto-subscription work for remote OStatus subscribers, but can't test until magic sigs are working again.