User:Bosco/ReportSRG.js: Difference between revisions
From WikiOasis Meta
More actions
report users to SRG to req lock |
mNo edit summary |
||
| Line 52: | Line 52: | ||
var api=new mw.Api(); | var api=new mw.Api(); | ||
try{ | try{ | ||
await api.postWithEditToken({action:'edit',title:targetTitle,appendtext:'\n'+wikitext+'\n',summary:'Reporting user(s) for global lock'}); | await api.postWithEditToken({action:'edit',title:targetTitle,appendtext:'\n'+wikitext+'\n',summary:'Reporting user(s) for global lock) ([[User:Bosco/ReportSRG.js|ReportSRG]]'}); | ||
mw.notify('Report successfully submitted to Steward requests on Meta',{type:'success'}); | mw.notify('Report successfully submitted to Steward requests on Meta',{type:'success'}); | ||
}catch(e){ | }catch(e){ | ||