diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-16 22:03:24 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-16 22:03:24 +0000 |
commit | 440ab9039178bfc58c55316eb9ba2e19551bd12b (patch) | |
tree | f8d9c9c1fcfb877fa413afe937a57ba3fe676025 /plugins/OStatus/lib/feedmunger.php | |
parent | a116cde1a401b1959515b8e6b512c41603387031 (diff) |
OStatus: fix up some recent regressions in subscription setup; fix state checks and verification token, and avatar save on setup. Needs updates for new atom code next...
Diffstat (limited to 'plugins/OStatus/lib/feedmunger.php')
-rw-r--r-- | plugins/OStatus/lib/feedmunger.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/OStatus/lib/feedmunger.php b/plugins/OStatus/lib/feedmunger.php index c895b6ce2..e8c46de90 100644 --- a/plugins/OStatus/lib/feedmunger.php +++ b/plugins/OStatus/lib/feedmunger.php @@ -258,11 +258,12 @@ class FeedMunger { // hack hack hack // should get profile for this entry's author... - $remote = Ostatus_profile::staticGet('feeduri', $this->getSelfLink()); - if ($feed) { - return $feed->profile_id; + $feeduri = $this->getSelfLink(); + $remote = Ostatus_profile::staticGet('feeduri', $feeduri); + if ($remote) { + return $remote->profile_id; } else { - throw new Exception("Can't find feed profile"); + throw new Exception("Can't find feed profile for $feeduri"); } } |