Commit Graph

178 Commits

Author SHA1 Message Date
Jayden 91610c72fd Update README.md 2021-09-14 02:55:40 +01:00
DodoCodes.com 1a9cbbf48f Update README.md
Added instructions for installing missing dependencies.
2021-09-12 18:16:38 -07:00
Jayden Bailey ffc78324ff Fix bug with preg_replace for username truncating and change truncation to be configurable 2021-05-04 17:27:34 +01:00
Jayden Bailey 5a303252e3 Merge branch 'master' of github.com:jaydenkieran/mw-discord 2021-05-04 17:02:24 +01:00
Jayden Bailey 4ec63619f5 Change emojis to be configurable (resolves #25) 2021-05-04 17:00:55 +01:00
Jayden Bailey 572d9e3d87 Sanitise summary/reason text input (closes #13) 2021-05-04 17:00:47 +01:00
Jayden Bailey 3eb34310ef Merge pull request #33 from Joeytje50/patch-1
Abbreviate anyone with a name longer than 25 chars
2021-05-04 16:08:34 +01:00
Joeytje50 7c20f06902 Abbreviate anyone with a name longer than 25 chars
Any username of 25 or more characters will be abbreviated to the first 20 characters, then `...`, and then the last three. This is especially helpful for RC stalkers with discord taking up only half their screen.

Different ways to abbreviate names would be possible by changing the regex pattern's numbers, or the resulting string.
2021-04-23 17:13:11 +02:00
Jayden Bailey 144499a248 Update README with branch/install info 2020-09-18 14:58:28 +01:00
Jayden Bailey 079e688ee9 Fix fatal error when blocking users
Fixes #27, closes #29
2020-09-18 14:51:07 +01:00
Jayden Bailey fb6e0f7755 Update README file 1.0.12 2020-06-12 16:02:35 +01:00
Jayden Bailey 4e17d17de6 Add emojis config option 2020-06-12 16:00:01 +01:00
Jayden Bailey f3b2531380 Support Approved Revs hooks
Closes #24
2020-06-12 15:36:15 +01:00
Jayden Bailey 536a4afe13 Support ArticleMergeComplete hook
Closes #16
2020-06-12 14:22:16 +01:00
Jayden Bailey b3648a462c Use RequestContext instead of wgUser
Closes #9
1.0.11
2019-11-23 11:48:21 +00:00
Jayden Bailey bbff717a24 Add extra debug log message 1.0.10 2019-11-23 09:55:16 +00:00
Jayden Bailey 6d8b2c33cb Add Content-Type header for curl requests 2019-11-23 09:53:09 +00:00
Jayden Bailey 47eef3c35d Small fix for error message 2019-11-23 09:00:24 +00:00
Jayden Bailey 7f51c4f310 Update README 2019-07-24 12:29:13 +01:00
Jayden Bailey ad101a326f Send messages for Special:Import
Fixes #6
1.0.8
2019-07-24 12:26:46 +01:00
Jayden Bailey 687d1abf1f Update project README file 2019-07-19 17:03:26 +01:00
Jayden Bailey 0df5463a87 Bump extension version 1.0.7 2019-07-19 16:59:04 +01:00
Jayden Bailey 10b4db72f7 Link directly to contribs page when user is anonymous
Resolves #12
2019-07-19 16:58:41 +01:00
Jayden Bailey fb9ada8f9c Drop cURL timeout down to 10 seconds incase of Discord downtime 2019-07-19 16:40:20 +01:00
Jayden Bailey 9a7dd03d5c Add option for using file_get_contents
Resolves #14
2019-07-19 16:39:38 +01:00
Jayden Bailey fa9149165d Bump version and update readme 1.0.6 2019-06-16 13:39:56 +01:00
Jayden Bailey ca3a5f8047 Add option to include timestamps on messages
Closes #11
2019-06-16 13:38:15 +01:00
Jayden Bailey 591ef8746e Merge pull request #8 from Dinoguy1000/patch-2
consistently suppress bot actions...
1.0.5
2019-05-13 18:33:47 +01:00
Dinoguy1000 6c2e30deab bump version number too 2019-04-30 19:28:29 -05:00
Dinoguy1000 ce780adf10 Update DiscordHooks.php 2019-04-30 19:22:35 -05:00
Jayden Bailey 680040e823 Merge pull request #3 from Railfail536/patch-1
Add Polish i18n
2019-05-01 01:20:57 +01:00
Jayden Bailey 8fa8dce03d Merge pull request #7 from Dinoguy1000/patch-1
default to revision size for diff size
2019-05-01 01:14:21 +01:00
Dinoguy1000 c3bdbecee5 consistently suppress bot actions...
...when $wgDiscordNoBots is true. This prevents (un)deletions, (un)protections, and file uploads from being reported when performed by a bot. Also did a bit of globals cleanup in one function.
2019-04-29 15:05:53 -05:00
Dinoguy1000 6ccca7b823 default to revision size for diff size
Certain events (primarily page creations) fail to display a diff size because there effectively is no diff (there is no previous revision to diff with); in these cases, just display the size of the current revision.
2019-04-29 14:52:52 -05:00
Jayden Bailey 03d612a3f7 handle potential strings in createUserLinks 2019-04-24 11:11:00 +01:00
Jayden Bailey 9830df7e97 Merge pull request #5 from xunto/xunto-patch-2
Fix unneeded broken curl_exec (Unknown Error with Visual Editor)
2019-01-29 22:16:11 +00:00
Orlov Valentine cecb90dffc Fix unneeded broken curl_exec 2019-01-30 00:44:53 +03:00
Jayden Bailey 9034275470 Update extension.json 1.0.4 2019-01-29 13:33:50 +00:00
Jayden Bailey 3f1e1e784b Add different message for page creations
Closes #4
2019-01-29 13:32:40 +00:00
Rail 78d66e5e31 + pl.json 2019-01-28 12:19:52 +01:00
Jayden Bailey f0cf5a741d fix substitution on remaining hooks 2019-01-24 16:51:05 +00:00
Jayden Bailey c193c24be2 better checks for file namespace 1.0.3 2019-01-22 16:22:26 +00:00
Jayden Bailey 4b46212f49 stop substitution for edit summaries 2019-01-22 16:02:28 +00:00
Jayden Bailey d6d0f22c01 Add wgDiscordDisabledUsers, closes #1 1.0.2 2018-12-30 21:14:07 +00:00
Jayden Bailey 0cf579aa6a Add DiscordMaxChars 1.0.1 2018-12-16 21:12:13 +00:00
Jayden Bailey ac38da8529 remove defunct tests 2018-12-16 20:49:24 +00:00
Jayden Bailey 08edbc98d9 discord instructions 1.0 2018-12-10 18:54:00 +00:00
Jayden Bailey 580ff29cd7 update readme 2018-12-10 18:50:15 +00:00
Jayden Bailey f1df631108 fix readme 2018-12-10 14:50:46 +00:00
Jayden Bailey 6f9dd64dd1 finalise i18n 2018-12-10 14:50:17 +00:00