Don't float posts on account deletion
Ref T319
This commit is contained in:
parent
9d360f0e41
commit
c9faff178d
1 changed files with 0 additions and 10 deletions
10
database.go
10
database.go
|
@ -2184,16 +2184,6 @@ func (db *datastore) DeleteAccount(userID int64) error {
|
|||
rs, _ = res.RowsAffected()
|
||||
log.Info("Deleted %d for %s from collectionkeys", rs, c.Alias)
|
||||
|
||||
// Float all collection's posts
|
||||
res, err = t.Exec("UPDATE posts SET collection_id = NULL WHERE collection_id = ? AND owner_id = ?", c.ID, userID)
|
||||
if err != nil {
|
||||
t.Rollback()
|
||||
log.Error("Unable to update collection %s for posts: %v", c.Alias, err)
|
||||
return err
|
||||
}
|
||||
rs, _ = res.RowsAffected()
|
||||
log.Info("Removed %d posts from collection %s", rs, c.Alias)
|
||||
|
||||
// TODO: federate delete collection
|
||||
|
||||
// Remove remote follows
|
||||
|
|
Loading…
Add table
Reference in a new issue