Skip to content

Commit

Permalink
Fix not shortened url on sharing
Browse files Browse the repository at this point in the history
(cherry picked from commit 7bd1dc4)
  • Loading branch information
lens0021 committed Jan 15, 2021
1 parent 8d4279f commit a10d03f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Versions and bullets are arranged chronologically from latest to oldest.

## v1.4.1 (Unreleased)

- Fix not shortened url on sharing

## v1.4.0

- Add a new configuration variable `$wgFemiwikiAddThisId` for pubid and tool id of [AddThis](https://www.addthis.com/). If it is set, `$wgFemiwikiFacebookAppId` will be ignored.
Expand Down
4 changes: 1 addition & 3 deletions resources/skins.femiwiki.share.ui/mw.fw.ShareDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@
this.urlWidget.setValue(url);

if (this.useAddThis) {
addthis_share = addthis_share || {};
addthis_share.url = url;
addthis.layers.refresh();
addthis.layers.refresh(url);
} else {
var tweet =
mw.config.get('wgPageName').replace(/_/g, ' ') +
Expand Down

0 comments on commit a10d03f

Please sign in to comment.