aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-24 19:38:54 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-24 19:38:54 -0400
commit8a6c407282fe10f676f08f21e28647a5c8794e11 (patch)
treeb5a5bc5881bf5b35cdb52bb997498ef36a391720 /include/diaspora.php
parent803f79e0912c4a526a16fdda4809277d8ad3195d (diff)
parent3ae43c24487450a749942ef4c3c19fa2a61461b6 (diff)
downloadvolse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.tar.gz
volse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.tar.bz2
volse-hubzilla-8a6c407282fe10f676f08f21e28647a5c8794e11.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: prevent duplicate friend suggestions block filed items from deletion add the bang network filter is now a permission group small fix in css add right_aside to diabook-blue add connectable services to right_aside add PostIt to right_aside, fixes in css * master:
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index 1b5af42cd..84d28a7ec 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -1737,7 +1737,7 @@ function diaspora_retraction($importer,$xml) {
contact_remove($contact['id']);
}
elseif($type === 'Post') {
- $r = q("select * from item where guid = '%s' and uid = %d limit 1",
+ $r = q("select * from item where guid = '%s' and uid = %d and not file like '%%[%%' limit 1",
dbesc('guid'),
intval($importer['uid'])
);
@@ -1785,7 +1785,7 @@ function diaspora_signed_retraction($importer,$xml,$msg) {
}
if($type === 'StatusMessage') {
- $r = q("select * from item where guid = '%s' and uid = %d limit 1",
+ $r = q("select * from item where guid = '%s' and uid = %d and not file like '%%[%%' limit 1",
dbesc($guid),
intval($importer['uid'])
);