aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-10 18:45:58 -0700
committerfriendica <info@friendica.com>2013-03-10 18:45:58 -0700
commit952b2ef2ab256d46d616db70edc42ffe640a5e9d (patch)
tree1bd9cb83a6beae2beb5ff30b1b26d604e7ccfc06 /mod
parent0d504715c1859276e919ddc6b236f946c783714f (diff)
downloadvolse-hubzilla-952b2ef2ab256d46d616db70edc42ffe640a5e9d.tar.gz
volse-hubzilla-952b2ef2ab256d46d616db70edc42ffe640a5e9d.tar.bz2
volse-hubzilla-952b2ef2ab256d46d616db70edc42ffe640a5e9d.zip
.
Diffstat (limited to 'mod')
-rw-r--r--mod/editpost.php7
-rw-r--r--mod/post.php1
-rw-r--r--mod/zfinger.php6
3 files changed, 11 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;
}
diff --git a/mod/post.php b/mod/post.php
index e5fa1a418..af08d3f98 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -261,6 +261,7 @@ function post_post(&$a) {
}
}
+
if($msgtype === 'refresh') {
// remote channel info (such as permissions or photo or something)
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 74353e8f9..48582b3d6 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -145,6 +145,12 @@ function zfinger_init(&$a) {
// array of (verified) hubs this channel uses
$ret['locations'] = array();
+
+
+
+
+
+
$x = zot_get_hubloc(array($e['channel_hash']));
if($x && count($x)) {
foreach($x as $hub) {