Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
Cool thanks, Is there documentation for it?
On Mon, Apr 21, 2014 at 1:49 PM, Bartosz Dziewoński matma.rex@gmail.com wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
-- Matma Rex
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
nvm I found
On Mon, Apr 21, 2014 at 1:54 PM, Petr Bena benapetr@gmail.com wrote:
Cool thanks, Is there documentation for it?
On Mon, Apr 21, 2014 at 1:49 PM, Bartosz Dziewoński matma.rex@gmail.com wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
-- Matma Rex
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
One more
Which token am I supposed to use of these: edit, delete, protect, move, block, unblock, email,import, watch
The documentation say just "use token" but it doesn't say which one
On Mon, Apr 21, 2014 at 2:14 PM, Petr Bena benapetr@gmail.com wrote:
nvm I found
On Mon, Apr 21, 2014 at 1:54 PM, Petr Bena benapetr@gmail.com wrote:
Cool thanks, Is there documentation for it?
On Mon, Apr 21, 2014 at 1:49 PM, Bartosz Dziewoński matma.rex@gmail.com wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
-- Matma Rex
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On 04/21/2014 07:49 AM, Bartosz Dziewoński wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
I looked at this a while ago and found that this won't get rid of the orange bar (or its equivalent in the API). And this still seems to be true.
The relevant method is User::clearNotification() (which in turn calls User::setNewtalk()). That API module doesn't call it, instead updating the watchlist table directly to allow batching.
So the user_newtalk row (or for anons, the object cache entry) is not deleted or updated.
Does it mean it's not possible to do this using api?
On Mon, Apr 21, 2014 at 3:08 PM, Kevin Israel pleasestand@live.com wrote:
On 04/21/2014 07:49 AM, Bartosz Dziewoński wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
I looked at this a while ago and found that this won't get rid of the orange bar (or its equivalent in the API). And this still seems to be true.
The relevant method is User::clearNotification() (which in turn calls User::setNewtalk()). That API module doesn't call it, instead updating the watchlist table directly to allow batching.
So the user_newtalk row (or for anons, the object cache entry) is not deleted or updated.
-- Kevin Israel - MediaWiki developer, Wikipedia editor http://en.wikipedia.org/wiki/User:PleaseStand
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
The api doesn't work, I made it successfuly update it, but it still show new messages
On Mon, Apr 21, 2014 at 3:10 PM, Petr Bena benapetr@gmail.com wrote:
Does it mean it's not possible to do this using api?
On Mon, Apr 21, 2014 at 3:08 PM, Kevin Israel pleasestand@live.com wrote:
On 04/21/2014 07:49 AM, Bartosz Dziewoński wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
I looked at this a while ago and found that this won't get rid of the orange bar (or its equivalent in the API). And this still seems to be true.
The relevant method is User::clearNotification() (which in turn calls User::setNewtalk()). That API module doesn't call it, instead updating the watchlist table directly to allow batching.
So the user_newtalk row (or for anons, the object cache entry) is not deleted or updated.
-- Kevin Israel - MediaWiki developer, Wikipedia editor http://en.wikipedia.org/wiki/User:PleaseStand
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
https://bugzilla.wikimedia.org/show_bug.cgi?id=64238
On Mon, Apr 21, 2014 at 3:14 PM, Petr Bena benapetr@gmail.com wrote:
The api doesn't work, I made it successfuly update it, but it still show new messages
On Mon, Apr 21, 2014 at 3:10 PM, Petr Bena benapetr@gmail.com wrote:
Does it mean it's not possible to do this using api?
On Mon, Apr 21, 2014 at 3:08 PM, Kevin Israel pleasestand@live.com wrote:
On 04/21/2014 07:49 AM, Bartosz Dziewoński wrote:
On Mon, 21 Apr 2014 13:40:16 +0200, Petr Bena benapetr@gmail.com wrote:
Using api.php?action=query&meta=userinfo&uiprop=rights|hasmsg I get information about new message.
Now I can read it using api, but that doesn't flag the talk page as read. What do I need to do in order to flag it as read other than running external browser instead of api?
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
I looked at this a while ago and found that this won't get rid of the orange bar (or its equivalent in the API). And this still seems to be true.
The relevant method is User::clearNotification() (which in turn calls User::setNewtalk()). That API module doesn't call it, instead updating the watchlist table directly to allow batching.
So the user_newtalk row (or for anons, the object cache entry) is not deleted or updated.
-- Kevin Israel - MediaWiki developer, Wikipedia editor http://en.wikipedia.org/wiki/User:PleaseStand
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Mon, 21 Apr 2014 15:08:22 +0200, Kevin Israel pleasestand@live.com wrote:
Use the action=setnotificationtimestamp API to mark your own talk page as 'visited'.
I looked at this a while ago and found that this won't get rid of the orange bar (or its equivalent in the API). And this still seems to be true.
Ugh. I thought I fixed that when doing https://gerrit.wikimedia.org/r/#/c/84315/ , but apparently I didn't :(
wikitech-l@lists.wikimedia.org