mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Fix several database issues
This commit is contained in:
parent
0c7c1efbd7
commit
60a6dfa23c
7 changed files with 43 additions and 30 deletions
|
@ -68,9 +68,12 @@ class Profile extends BaseModule
|
|||
|
||||
$last_updated = $last_updated_array[$last_updated_key] ?? 0;
|
||||
|
||||
// If the page user is the owner of the page we should query for unseen
|
||||
// items. Otherwise use a timestamp of the last succesful update request.
|
||||
if ($is_owner || !$last_updated) {
|
||||
if ($_GET['force'] && !empty($_GET['item'])) {
|
||||
// When the parent is provided, we only fetch this
|
||||
$sql_extra4 = " AND `parent` = " . intval($_GET['item']);
|
||||
} elseif ($is_owner || !$last_updated) {
|
||||
// If the page user is the owner of the page we should query for unseen
|
||||
// items. Otherwise use a timestamp of the last succesful update request.
|
||||
$sql_extra4 = " AND `unseen`";
|
||||
} else {
|
||||
$gmupdate = gmdate(DateTimeFormat::MYSQL, $last_updated);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue