Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hubzilla
core
Commits
8a7b2214
Commit
8a7b2214
authored
Jan 12, 2023
by
Mario
Browse files
mark old hubloc entries from re-installed hubs deleted if we discover any
parent
d092e79e
Pipeline
#564825
passed with stage
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Zotlabs/Lib/Libsync.php
View file @
8a7b2214
...
...
@@ -862,7 +862,9 @@ class Libsync {
);
}
// update connection timestamp if this is the site we're talking to
// Update connection timestamp if this is the site we're talking to.
// Also mark all entries from the current site with different sitekeys
// deleted (the site has been re-installed)
// This only happens when called from import_xchan
$current_site
=
false
;
...
...
@@ -876,6 +878,12 @@ class Libsync {
intval
(
$r
[
0
][
'hubloc_id'
]),
dbesc
(
$t
)
);
q
(
"update hubloc set hubloc_error = 1, hubloc_deleted = 1 where hubloc_url = '%s' and hubloc_sitekey != '%s'"
,
dbesc
(
$r
[
0
][
'hubloc_url'
]),
dbesc
(
$r
[
0
][
'hubloc_sitekey'
])
);
$current_site
=
true
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment