.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -261,6 +261,7 @@ function post_post(&$a) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if($msgtype === 'refresh') {
|
||||
|
||||
// remote channel info (such as permissions or photo or something)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user