aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editpost.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-03-14 22:50:30 +0000
committerThomas Willingham <founder@kakste.com>2013-03-14 22:50:30 +0000
commitd07971b909363dd82faee3e4b5a218cb21d376dc (patch)
tree1d4b76c4ed24bf3c8cbb81c73069eb8ab4b2644c /mod/editpost.php
parentfbc5260995866c280fbc48bfb7899836f46136f4 (diff)
parentffcba3db81d85ae8bdc56f1772c7675aef56c78e (diff)
downloadvolse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.tar.gz
volse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.tar.bz2
volse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.zip
Merge remote-tracking branch 'upstream/master'
Conflicts: view/theme/redbasic/css/style.css
Diffstat (limited to 'mod/editpost.php')
-rw-r--r--mod/editpost.php7
1 files changed, 4 insertions, 3 deletions
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;
}