aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-01 14:52:47 -0700
committerfriendica <info@friendica.com>2014-04-01 14:52:47 -0700
commit6ba32d714dd40c530aa40d1ae25dddb25a262a36 (patch)
treed9cf73f2f69c8ad9d217772ba5983fc8312b542a /mod
parent78d7425a1d9de91343c60be1d0f0a467a674d84d (diff)
downloadvolse-hubzilla-6ba32d714dd40c530aa40d1ae25dddb25a262a36.tar.gz
volse-hubzilla-6ba32d714dd40c530aa40d1ae25dddb25a262a36.tar.bz2
volse-hubzilla-6ba32d714dd40c530aa40d1ae25dddb25a262a36.zip
save notes every ten seconds while focused, then save them once more on focusout
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index d8101cf01..226d05d7e 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -1133,14 +1133,13 @@ function fix_attached_photo_permissions($uid,$xchan_hash,$body,
if($r) {
$r = q("UPDATE photo SET allow_cid = '%s', allow_gid = '%s', deny_cid = '%s', deny_gid = '%s'
- WHERE resource_id = '%s' AND uid = %d AND album = '%s' ",
+ WHERE resource_id = '%s' AND uid = %d ",
dbesc($str_contact_allow),
dbesc($str_group_allow),
dbesc($str_contact_deny),
dbesc($str_group_deny),
dbesc($image_uri),
- intval($uid),
- dbesc( t('Wall Photos'))
+ intval($uid)
);
// also update the linked item (which is probably invisible)