mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
Bugfix: The nickname vanished/better way to fetch the alias
This commit is contained in:
parent
e5377a5e91
commit
b4b62493e6
4 changed files with 23 additions and 8 deletions
|
@ -405,6 +405,9 @@ function cron_repair_database() {
|
|||
// This call is very "cheap" so we can do it at any time without a problem
|
||||
q("UPDATE `item` INNER JOIN `item` AS `parent` ON `parent`.`uri` = `item`.`parent-uri` AND `parent`.`uid` = `item`.`uid` SET `item`.`parent` = `parent`.`id` WHERE `item`.`parent` = 0");
|
||||
|
||||
// There was an issue where the nick vanishes from the contact table
|
||||
q("UPDATE `contact` INNER JOIN `user` ON `contact`.`uid` = `user`.`uid` SET `nick` = `nickname` WHERE `self` AND `nick`=''");
|
||||
|
||||
/// @todo
|
||||
/// - remove thread entries without item
|
||||
/// - remove sign entries without item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue