Does it mean it's not possible to do this using api? On Mon, Apr 21, 2014 at 3:08 PM, Kevin Israel <pleasest...@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 <benap...@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
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l