mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix: don't delete rows from messages table when the associated member is deleted
This commit is contained in:
parent
54830fd264
commit
34df19c551
9 changed files with 51 additions and 27 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue