Commit Graph

38 Commits

Author SHA1 Message Date
Jayden Bailey 160a512d67 Fix removed function call in createRevisionText (1.36+)
This commit raises the requirement of the extension to MediaWiki 1.36.
2021-11-17 13:06:16 +00:00
TehKittyCat c24fee7a66 Replace usage of deprecated hooks. PageContentSaveComplete is replaced with PageSaveComplete and TitleMoveComplete is replaced with PageMoveComplete. This extension now requires MediaWiki 1.35 or higher. 2021-11-17 00:21:12 -05:00
TehKittyCat 1e962c55fb Fix "Title::get{Canonical,Full,Link,Local,Internal}URL method called with a second parameter is deprecated since MediaWiki 1.19. Add your parameter to an array passed as the first parameter.", fix function call casing, and use the canonical protocol. 2021-11-16 16:11:31 -05: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
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 4e17d17de6 Add emojis config option 2020-06-12 16:00:01 +01:00
Jayden Bailey bbff717a24 Add extra debug log message 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 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 ca3a5f8047 Add option to include timestamps on messages
Closes #11
2019-06-16 13:38:15 +01: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
Orlov Valentine cecb90dffc Fix unneeded broken curl_exec 2019-01-30 00:44:53 +03:00
Jayden Bailey d6d0f22c01 Add wgDiscordDisabledUsers, closes #1 2018-12-30 21:14:07 +00:00
Jayden Bailey 0cf579aa6a Add DiscordMaxChars 2018-12-16 21:12:13 +00:00
Jayden Bailey 6f9dd64dd1 finalise i18n 2018-12-10 14:50:17 +00:00
Jayden Bailey 9915584d88 i18n - discord-revisionlinks 2018-12-10 01:19:02 +00:00
Jayden Bailey be4edee059 i18n - userlinks 2018-12-10 00:56:13 +00:00
Jayden Bailey 785a487305 wgDiscordDisabledNS 2018-12-09 23:33:59 +00:00
Jayden Bailey 9049111917 wgDiscordDisabledHooks 2018-12-09 23:03:46 +00:00
Jayden Bailey 07b74b1bd4 wgDiscordSuppressPreviews 2018-12-09 21:24:44 +00:00
Jayden Bailey 400dde09b8 slightly change formatting 2018-12-09 21:13:18 +00:00
Jayden Bailey 4d583c4e89 add a deferredupdate for executing the webhook 2018-12-09 21:11:00 +00:00
Jayden Bailey 4968045e23 fix string formatting 2018-12-09 19:58:22 +00:00
Jayden Bailey 45ca7b6b6c try alternative approach for getting previous revision if first fails 2018-12-09 19:49:47 +00:00
Jayden Bailey ac76de7636 explicitly disable previews for links 2018-12-09 17:25:34 +00:00
Jayden Bailey 47eb223dee derp 2018-12-09 17:18:36 +00:00
Jayden Bailey 61b65f586f explicitly set getFullUrl protocol to HTTP 2018-12-09 17:14:51 +00:00
Jayden Bailey 611f9a9176 upload complete 2018-12-09 14:54:26 +00:00
Jayden Bailey 2d5ee02773 articledeletecomplete 2018-12-08 16:33:39 +00:00
Jayden Bailey 0934afd4a0 start extension rewrite, add cURL handling 2018-12-08 14:47:52 +00:00
Szmyk cd67be63e2 Change project structure 2018-07-12 22:31:19 +02:00