fix: don't delete rows from messages table when the associated member is deleted

This commit is contained in:
spiral 2022-01-11 09:43:55 -05:00
parent 54830fd264
commit 34df19c551
No known key found for this signature in database
GPG key ID: A6059F0CA0E1BD31
9 changed files with 51 additions and 27 deletions

View file

@ -148,7 +148,7 @@ public class DiscordControllerV2: PKControllerBase
if (msg == null)
throw Errors.MessageNotFound;
var ctx = ContextFor(msg.System);
var ctx = msg.System == null ? LookupContext.ByNonOwner : ContextFor(msg.System);
return msg.ToJson(ctx, APIVersion.V2);
}
}