mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
lotsoflittlestuff
This commit is contained in:
parent
ba8da761e6
commit
466267fbb5
14 changed files with 99 additions and 45 deletions
|
@ -88,11 +88,11 @@ function contacts_content(&$a) {
|
|||
}
|
||||
|
||||
|
||||
$photo = str_replace('-4.jpg', '' , $r[0]['photo']);
|
||||
$photos = q("SELECT `id` FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d",
|
||||
dbesc($photo),
|
||||
intval($_SESSION['uid'])
|
||||
);
|
||||
// $photo = str_replace('-4.jpg', '' , $r[0]['photo']);
|
||||
// $photos = q("SELECT `id` FROM `photo` WHERE `resource-id` = '%s' AND `uid` = %d",
|
||||
// dbesc($photo),
|
||||
// intval($_SESSION['uid'])
|
||||
// );
|
||||
|
||||
if($cmd == 'block') {
|
||||
$blocked = (($orig_record[0]['blocked']) ? 0 : 1);
|
||||
|
@ -113,12 +113,14 @@ function contacts_content(&$a) {
|
|||
$r = q("DELETE FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||
intval($contact_id),
|
||||
intval($_SESSION['uid']));
|
||||
if(count($photos)) {
|
||||
foreach($photos as $p) {
|
||||
q("DELETE FROM `photos` WHERE `id` = %d LIMIT 1",
|
||||
$p['id']);
|
||||
}
|
||||
}
|
||||
|
||||
// if(count($photos)) {
|
||||
// foreach($photos as $p) {
|
||||
// q("DELETE FROM `photos` WHERE `id` = %d LIMIT 1",
|
||||
// $p['id']);
|
||||
// }
|
||||
// }
|
||||
|
||||
if(intval($contact_id))
|
||||
q("DELETE FROM `item` WHERE `contact-id` = %d LIMIT 1",
|
||||
intval($contact_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue