Commit f94aad8
Improve guild member cache fetch logic and fix escaping in message image url search regex
Merge the pydis changes to the bot (modmail-dev#3365)
* Escape hyphen in regex string
Unescaped this was permitting any character between $ (index 36) and _ (index 95), which aren't all valid in urls.
* Get or fetch member when trying to reply
This fixes an issue where the member may not be in the cache
---------
Signed-off-by: Taku <[email protected]>
Co-authored-by: Taku <[email protected]>
Co-authored-by: Chris Lovering <[email protected]>
(cherry picked from commit 1a3bda8)1 parent 59b9487 commit f94aad8
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
665 | 675 | | |
666 | 676 | | |
667 | 677 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
838 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
839 | 845 | | |
840 | 846 | | |
841 | 847 | | |
| |||
1007 | 1013 | | |
1008 | 1014 | | |
1009 | 1015 | | |
1010 | | - | |
| 1016 | + | |
1011 | 1017 | | |
1012 | 1018 | | |
1013 | 1019 | | |
| |||
0 commit comments