Skip to content

Commit

Permalink
Generate url_* tokens if not present in API info (#343)
Browse files Browse the repository at this point in the history
* Generate url_* tokens if not present in API info

* encode the correct thing
  • Loading branch information
eritbh authored Aug 20, 2020
1 parent 27df3fd commit 6548585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/data/modules/removalreasons.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ function removalreasons () {
domain: info.domain,
body: info.body,
raw_body: info.raw_body,
uri_body: info.uri_body,
uri_title: info.uri_title,
uri_body: info.uri_body || encodeURIComponent(info.body),
uri_title: info.uri_title || encodeURIComponent(info.title),
reasons: [],
get reasons_posts () {
return this.reasons.filter(r => r.removePosts || r.removePosts === undefined);
Expand Down

0 comments on commit 6548585

Please sign in to comment.