TestWiki:Community portal: Difference between revisions

Content added Content deleted
Line 185: Line 185:
::[[User:Arcversin|Arcversin]], yeah, [[User:Void|Void]] said on [[m:IRC|IRC]] he figured he'd be able to correct the deleted contributions issue, but hadn't yet found a way to resolve the StructuredDiscussions issue. If you have a way of correcting the latter, I'm sure we could probably temporarily lower protection on [[User:Void/findInactiveSysops.js]] for you. [[mh:meta:User:Dmehus|Dmehus]] ([[User talk:Dmehus|talk]]) 01:32, 20 February 2022 (UTC)
::[[User:Arcversin|Arcversin]], yeah, [[User:Void|Void]] said on [[m:IRC|IRC]] he figured he'd be able to correct the deleted contributions issue, but hadn't yet found a way to resolve the StructuredDiscussions issue. If you have a way of correcting the latter, I'm sure we could probably temporarily lower protection on [[User:Void/findInactiveSysops.js]] for you. [[mh:meta:User:Dmehus|Dmehus]] ([[User talk:Dmehus|talk]]) 01:32, 20 February 2022 (UTC)
:::What can be done is directly requesting [[Special:Contributions]] and [[Special:DeletedContributions]] without using the API so that the Structured Discussions contributions are added, then looking over that in the script to check if the last contribution by the user was via Structured Discussions, and if so, check the timestamp. This should get everything except deleted topics. —&nbsp;<span style="font-variant: small-caps">[[User:Arcversin|Arcversin]] ([[User talk:Arcversin|talk]])</span> 02:04, 20 February 2022 (UTC)
:::What can be done is directly requesting [[Special:Contributions]] and [[Special:DeletedContributions]] without using the API so that the Structured Discussions contributions are added, then looking over that in the script to check if the last contribution by the user was via Structured Discussions, and if so, check the timestamp. This should get everything except deleted topics. —&nbsp;<span style="font-variant: small-caps">[[User:Arcversin|Arcversin]] ([[User talk:Arcversin|talk]])</span> 02:04, 20 February 2022 (UTC)
::::That's not a bad idea, but it's much harder to implement than it sounds, especially considering the likelihood that this would not be consistent for all users. Instead, I have the much more interesting idea of having the API parse <code><nowiki>{{Special:Contributions/<username>}}</nowiki></code>. This, when combined with a few specific options should produce consistent results for all users, provided I can figure out an accurate method for parsing out the timestamp. <span style="text-shadow:7px 5px 7px grey;font-family:High Tower Text">-- [[User:Void|<span style="color:#123524">Void</span>]] <sup>[[User talk:Void|<span style="color:#353839">''Whispers''</span>]]</sup></span> 03:30, 20 February 2022 (UTC)


== Request to enable extension ==
== Request to enable extension ==