aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-23 01:22:58 -0700
committerfriendica <info@friendica.com>2014-06-23 01:22:58 -0700
commit223ed4a6c526a71965cad4676320d3043f83fe5c (patch)
tree8365b9d54fea69589a9fd40f3626e6534e8e9871
parentc4c1c37bd3388cf2be3f57bc29492e73644bc4ec (diff)
downloadvolse-hubzilla-223ed4a6c526a71965cad4676320d3043f83fe5c.tar.gz
volse-hubzilla-223ed4a6c526a71965cad4676320d3043f83fe5c.tar.bz2
volse-hubzilla-223ed4a6c526a71965cad4676320d3043f83fe5c.zip
process profile like removals with normal low_level drop_item
-rwxr-xr-xinclude/items.php9
-rw-r--r--version.inc2
2 files changed, 10 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index c35a442b2..b80f18b72 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3722,6 +3722,15 @@ function delete_item_lowlevel($item,$stage = DROPITEM_NORMAL) {
break;
}
+
+ // immediately remove any undesired profile likes.
+
+ q("delete from likes where iid = %d and channel_id = %d limit 1",
+ intval($item['id']),
+ intval($item['uid'])
+ );
+
+
// network deletion request. Keep the message structure so that we can deliver delete notifications.
// Come back after several days (or perhaps a month) to do the lowlevel delete (DROPITEM_PHASE2).
diff --git a/version.inc b/version.inc
index 70a8e48e8..c7b1ae0bc 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-06-22.714
+2014-06-23.715