hi,
1. When destroying a status via API (with json)
2. and the status is not posted by the current logged in user
3. it'll response something like this pasted and I can't catch the error
because it's destroying the jsop structure
('{"error":"You may not delete another user's
status.","request":"\/api\/statuses\/destroy.json"}
<b>Warning</b>: Cannot modify header information - headers already sent by
(output started at /home3/arunodac/public_html/me/lib/apiaction.php:1100) in
<b>/home3/arunodac/public_html/me/lib/apiaction.php</b> on line
<b>1025</b><br />
{"text":"http:\/\/geomena.org\/ is totally cool!
#osb10","truncated":false,"created_at":"Tue Jun 01 20:18:55 +0000
2010","in_reply_to_status_id":null,"source":"ostatus","id":3048,"in_reply_to_user_id":null,"in_reply_to_screen_name":null,"geo":{"type":"Point","coordinates":[45.5234515,-122.6762071]},"favorited":false,"user":{"id":3,"name":"Evan
Prodromou","screen_name":"evan","location":"Portland, OR,
USA","description":"Montreal hacker and entrepreneur. Founder of identi.ca,
lead developer of StatusNet, CEO of StatusNet
Inc.","profile_image_url":"http:\/\/me.arunoda.com
\/avatar\/3-48-20100329190802.jpeg","url":"http:\/\/evan.prodromou.name\/","protected":false,"followers_count":0,"profile_background_color":"","profile_text_color":"","profile_link_color":"","profile_sidebar_fill_color":"","profile_sidebar_border_color":"","friends_count":0,"created_at":"Thu
Mar 25 18:09:21 +0000
2010","favourites_count":0,"utc_offset":"0","time_zone":"UTC","profile_background_image_url":"","profile_background_tile":"false","statuses_count":813,"following":true,"notifications":true}}')
thanks.
--
Arunoda Susiripala
http://arunoda.com
http://twitter.com/arunoda
_______________________________________________
StatusNet-dev mailing list
[email protected]
http://lists.status.net/mailman/listinfo/statusnet-dev