mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Get rid of unneeded or redundant fields
This commit is contained in:
parent
a720c4f501
commit
3f07d01dd1
9 changed files with 57 additions and 87 deletions
|
@ -442,7 +442,7 @@ function ping_get_notifications($uid)
|
|||
|
||||
do {
|
||||
$r = q(
|
||||
"SELECT `notify`.*, `item`.`visible`, `item`.`spam`, `item`.`deleted`
|
||||
"SELECT `notify`.*, `item`.`visible`, `item`.`deleted`
|
||||
FROM `notify` LEFT JOIN `item` ON `item`.`id` = `notify`.`iid`
|
||||
WHERE `notify`.`uid` = %d AND `notify`.`msg` != ''
|
||||
AND NOT (`notify`.`type` IN (%d, %d))
|
||||
|
@ -469,10 +469,6 @@ function ping_get_notifications($uid)
|
|||
$notification["visible"] = true;
|
||||
}
|
||||
|
||||
if (is_null($notification["spam"])) {
|
||||
$notification["spam"] = 0;
|
||||
}
|
||||
|
||||
if (is_null($notification["deleted"])) {
|
||||
$notification["deleted"] = 0;
|
||||
}
|
||||
|
@ -495,7 +491,6 @@ function ping_get_notifications($uid)
|
|||
$notification["href"] = System::baseUrl() . "/notify/view/" . $notification["id"];
|
||||
|
||||
if ($notification["visible"]
|
||||
&& !$notification["spam"]
|
||||
&& !$notification["deleted"]
|
||||
&& !(x($result, $notification["parent"]) && is_array($result[$notification["parent"]]))
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue