mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:50:15 +00:00
"item" is replaced whenever possible at the moment
This commit is contained in:
parent
0fe37b123a
commit
8f27715d8b
9 changed files with 21 additions and 21 deletions
|
@ -104,7 +104,7 @@ class Site extends BaseAdmin
|
|||
// update profile links in the format "http://server.tld"
|
||||
update_table($a, "profile", ['photo', 'thumb'], $old_url, $new_url);
|
||||
update_table($a, "contact", ['photo', 'thumb', 'micro', 'url', 'nurl', 'alias', 'request', 'notify', 'poll', 'confirm', 'poco', 'avatar'], $old_url, $new_url);
|
||||
update_table($a, "item", ['owner-link', 'author-link', 'body', 'plink', 'tag'], $old_url, $new_url);
|
||||
update_table($a, "post-content", ['body'], $old_url, $new_url);
|
||||
|
||||
// update profile addresses in the format "user@server.tld"
|
||||
update_table($a, "contact", ['addr'], $old_host, $new_host);
|
||||
|
|
|
@ -242,7 +242,7 @@ class UserExport extends BaseSettings
|
|||
self::exportAccount($a);
|
||||
echo "\n";
|
||||
|
||||
$total = DBA::count('item', ['uid' => local_user()]);
|
||||
$total = Post::count(['uid' => local_user()]);
|
||||
// chunk the output to avoid exhausting memory
|
||||
|
||||
for ($x = 0; $x < $total; $x += 500) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue