fix(bot): do not proxy the initial message in a forum post (#494)
This commit is contained in:
		@@ -118,6 +118,10 @@ public class ProxyService
 | 
				
			|||||||
        if (msg.Author.System == true || msg.Author.Bot || msg.WebhookId != null)
 | 
					        if (msg.Author.System == true || msg.Author.Bot || msg.WebhookId != null)
 | 
				
			||||||
            throw new ProxyChecksFailedException("This message was not sent by a normal user.");
 | 
					            throw new ProxyChecksFailedException("This message was not sent by a normal user.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Make sure this message does not start a forum thread
 | 
				
			||||||
 | 
					        if (msg.Id == msg.ChannelId)
 | 
				
			||||||
 | 
					            throw new ProxyChecksFailedException("This message is the initial message in a forum post, which PluralKit is unable to proxy correctly.");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Make sure proxying is enabled here
 | 
					        // Make sure proxying is enabled here
 | 
				
			||||||
        if (ctx.InBlacklist)
 | 
					        if (ctx.InBlacklist)
 | 
				
			||||||
            throw new ProxyChecksFailedException(
 | 
					            throw new ProxyChecksFailedException(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user