Skip to content

Commit

Permalink
Fixing FIRE commit messup
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerbrus committed May 16, 2017
1 parent 4fadfc3 commit 1ab3255
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions fire/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ To open the reported post on it's site:

|1.0 ||
| --- |---
|1.0.10 |Bugfix: got incorrect post ID for reports where the url contains a number.
|1.0.9 |Add SoBotics room.
|1.0.8 |Log toastr messages to the console.
|1.0.7 |Show "loading" error notification if FIRE fails to load a MS report.
|1.0.6 |Fixing incorrect escaping of HTML: Whitelisted some tags.
Expand Down
3 changes: 2 additions & 1 deletion fire/fire.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
// @description FIRE adds a button to SmokeDetector reports that allows you to provide feedback & flag, all from chat.
// @author Cerbrus
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
// @version 1.0.8
// @version 1.0.10
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
// @match *://chat.stackexchange.com/rooms/11540/charcoal-hq*
// @match *://chat.stackoverflow.com/rooms/41570/so-close-vote-reviewers*
// @match *://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta*
// @match *://chat.stackexchange.com/rooms/56223/the-spam-blot*
// @match *://chat.stackoverflow.com/rooms/111347/sobotics*
// @grant none
// ==/UserScript==
9 changes: 5 additions & 4 deletions fire/fire.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
// @description FIRE adds a button to SmokeDetector reports that allows you to provide feedback & flag, all from chat.
// @author Cerbrus
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
// @version 1.0.8
// @version 1.0.10
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
// @match *://chat.stackexchange.com/rooms/11540/charcoal-hq*
// @match *://chat.stackoverflow.com/rooms/41570/so-close-vote-reviewers*
// @match *://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta*
// @match *://chat.stackexchange.com/rooms/56223/the-spam-blot*
// @match *://chat.stackoverflow.com/rooms/111347/sobotics*
// @grant none
// ==/UserScript==

Expand Down Expand Up @@ -277,9 +278,9 @@
({user_name}) => user_name === fire.chatUser.name
);

const match = data.link.match(/\d+/);
if (match && match[0])
[data.post_id] = match;
const match = data.link.match(/.*\/(\d+)/);
if (match && match[1])
[, data.post_id] = match;

fire.reportCache[data.link] = data; // Store the data

Expand Down

0 comments on commit 1ab3255

Please sign in to comment.