diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-08 14:06:36 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-08 14:58:12 -0800 |
commit | 384387c9b05aefb438f5dbe7e272b1f234ede172 (patch) | |
tree | 7ac5935467b748c98782800846165b864a3588f7 /lib | |
parent | dc09453a77f33c4dfdff306321ce93cf5fbd2d57 (diff) |
OStatus cleanup...
* Treat linkless feed posts as status updates; drop the "New post:" prefix and quotes on them.
* Use stable user IDs for atom/rss2 feed links instead of unstable nicknames
* Pull Atom feed preferentially when subscribing -- can now put the remote user's profile page straight into the feed subscription form and get to the right place.
* Clean up naming for push endpoints
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index f0f262dc5..00c21aeb2 100644 --- a/lib/util.php +++ b/lib/util.php @@ -665,6 +665,9 @@ function common_valid_profile_tag($str) function common_at_link($sender_id, $nickname) { $sender = Profile::staticGet($sender_id); + if (!$sender) { + return $nickname; + } $recipient = common_relative_profile($sender, common_canonical_nickname($nickname)); if ($recipient) { $user = User::staticGet('id', $recipient->id); |