szmyk / mediawiki-discord Goto Github PK
View Code? Open in Web Editor NEWA simple extension for MediaWiki that sends notifications of wiki activity to Discord
License: MIT License
A simple extension for MediaWiki that sends notifications of wiki activity to Discord
License: MIT License
POST request is not serving by Discord if $wgSitename
is too long (>32 characters).
If you have the rewrites enabled for MediaWiki, you usually have your wiki pages at /wiki/Example
or just /Example
. Because of the extension not handling this, a link can turn out to be /Example&action=edit
instead of it being /index.php?title=Example&action=edit
.
Custom configuration options may fix this, but it appears that you can't depend on $wgScriptPath since that can just be ""
.
One last thing:
These appear to be the links for Special:Contributions
and Special:Block
respectively. I'm not sure what causes these embeds because I've clicked on both the links and they open in the browser correctly if the rewrites are disabled. Because of the brackets, it causes it to be an invalid user.
Using this on a wiki with a lot of edits quite often (such as mass uploads of files), it causes PHP errors because it gets rate limited by Discord. The extension should check for rate limiting and handle it by waiting and retrying.
This suggestion would add extra actions to the message.
For example..
User LewisTehMinerz (contribs | talk | block) edited page Example (undo)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.