Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Websocket messages occasionally have null change_size values #2

Open
mahmoud opened this issue Jun 2, 2013 · 0 comments
Open

Websocket messages occasionally have null change_size values #2

mahmoud opened this issue Jun 2, 2013 · 0 comments

Comments

@mahmoud
Copy link
Member

mahmoud commented Jun 2, 2013

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}'
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant