From 952b2ef2ab256d46d616db70edc42ffe640a5e9d Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 10 Mar 2013 18:45:58 -0700 Subject: . --- mod/editpost.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mod/editpost.php') diff --git a/mod/editpost.php b/mod/editpost.php index 43c71ca8a..1d7b7b6fb 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -18,13 +18,14 @@ function editpost_content(&$a) { return; } - $itm = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", + $itm = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d and author_xchan = '%s' LIMIT 1", intval($post_id), - intval(local_user()) + intval(local_user()), + dbesc(get_observer_hash()) ); if(! count($itm)) { - notice( t('Item not found') . EOL); + notice( t('Item is not editable') . EOL); return; } -- cgit v1.2.3