Giter Site home page Giter Site logo

wikimon's Issues

Websocket messages occasionally have null change_size values

Websocket messages will occasionally have null values for the change_size key in the JSON. This can be the result of a non-edit recent change entry, such as Special:Log/abuse, which actually doesn't have a size, but those entries actually don't have sizes. For real edits, this problem only seems to occur when it's a "Wikipedia-generated" message, such as "replaced content with '...'" or "Undid revision...".

For reference, an example IRC message:

[[Life sciences]] http://en.wikipedia.org/w/index.php?diff=558037670&oldid=555286077 * 41.133.165.179 * (�-2118�) [[WP:AES|←]]Replaced content with 'Science = Ashleigh.'

And the resulting JSON:

'{"is_anon": true, "page_title": "Life sciences", "url": "http://en.wikipedia.org/w/index.php?diff=558037670&oldid=555286077", "is_unpatrolled": false, "is_bot": false, "is_new": false, "is_minor": false, "summary": "(\\u0002-2118\\u0002) [[WP:AES|\\u2190]]Replaced content with \'Science = Ashleigh.\'", "flags": null, "user": "41.133.165.179", "ns": "Main", "change_size": null}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.