Page title fetching from API was introduced as a method of obtaining the actual page title in case of article comments being submitted on an article whose title is matching article's title in the IRC log but the actual title is much different. Same issue occurs for threads but for a different reason.
However, comments and threads cannot be created for talk namespaces, yet they are being fetched from the API as well. Making KockaLogger skip title checking for talk namespaces is going to save some HTTP requests.
Reproduction steps
Steps to reproduce the behavior:
Set up some HTTP request logging.
Open WikiaRC.
Create a talk page on a wiki with a logger set up.
Check if there's an HTTP request made to fetch the title of that talkpage.
Check if the title logged in WikiaRC is matching the title of the edited page.
Expected behavior
The HTTP request isn't made due to the title in WikiaRC already matching the page's title.
Notes
This needs further testing for verification.
This might require more advanced namespace detection to be implemented instead of basing namespace detection on namespace names fetched from the API.
Description
Page title fetching from API was introduced as a method of obtaining the actual page title in case of article comments being submitted on an article whose title is matching article's title in the IRC log but the actual title is much different. Same issue occurs for threads but for a different reason.
However, comments and threads cannot be created for talk namespaces, yet they are being fetched from the API as well. Making KockaLogger skip title checking for talk namespaces is going to save some HTTP requests.
Reproduction steps
Steps to reproduce the behavior:
Expected behavior
The HTTP request isn't made due to the title in WikiaRC already matching the page's title.
Notes