Commit ad801b1
Fixes thread_auto_close execution when disabled. (#3423)
* Fixes thread_auto_close execution when disabled.
This fixes the issue #3290 which caused threads to be auto-closed even if `thread_auto_close` has been disabled.
There was also an issue that closed the thread when the user has responded to mods. The thread should stay open and only auto close when the staff has replied back.
* fix: prevent autoclosing when close has been cancelled.
This solves the thread from autoclosing if the closure has been cancelled earlier in a thread.
* fix: AttributeError / lower mongo calls.
I had added a small bugfix aswell for pagination when an invalid config var was given.
This happened to occur upon removing the `thread_auto_close` config.
---------
Co-authored-by: lorenzo132 <[email protected]>
Co-authored-by: lorenzo132 <[email protected]>1 parent ab458f5 commit ad801b1
2 files changed
+34
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
876 | 890 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
883 | | - | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
884 | 903 | | |
885 | 904 | | |
886 | 905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
1078 | 1079 | | |
1079 | 1080 | | |
1080 | 1081 | | |
| 1082 | + | |
1081 | 1083 | | |
1082 | 1084 | | |
1083 | 1085 | | |
| |||
1278 | 1280 | | |
1279 | 1281 | | |
1280 | 1282 | | |
| 1283 | + | |
1281 | 1284 | | |
1282 | 1285 | | |
1283 | 1286 | | |
| |||
1810 | 1813 | | |
1811 | 1814 | | |
1812 | 1815 | | |
1813 | | - | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
| 1819 | + | |
| 1820 | + | |
1814 | 1821 | | |
1815 | 1822 | | |
1816 | 1823 | | |
| |||
0 commit comments