Nischayn22 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/55874


Change subject: Correct flickr url generation.
......................................................................

Correct flickr url generation.

The urls for images in flickr was getting wrong setting it to the right
thing as per http://www.flickr.com/services/api/misc.urls.html

Note: Couldn't test this locally because of the curl error, so please test
before merging

Bug 46559

Change-Id: I57900feba9eafc5c4790b17459c857bccdf9e236
---
M resources/mw.FlickrChecker.js
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UploadWizard 
refs/changes/74/55874/1

diff --git a/resources/mw.FlickrChecker.js b/resources/mw.FlickrChecker.js
index 4f6b99d..012a04f 100644
--- a/resources/mw.FlickrChecker.js
+++ b/resources/mw.FlickrChecker.js
@@ -84,7 +84,7 @@
                        api_key: _this.apiKey,
                        photoset_id: albumIdMatches[1],
                        format: 'json',
-                       extras: 'license, url_sq, owner_name, original_format, 
date_taken, geo, path_alias' },
+                       extras: 'license, url_sq, owner_name, original_format, 
date_taken, geo' },
                        function( data ) {
                                if ( typeof data.photoset !== 'undefined' ) {
                                        $.each( data.photoset.photo, function( 
i, item ){
@@ -100,7 +100,7 @@
                                                                        
fileName = item.title + '.jpg';
                                                                }
                                                                sourceURL = 
'http://www.flickr.com/photos/'
-                                                                       + 
item.pathalias + '/' + item.id + '/';
+                                                                       + 
data.photoset.owner + '/' + item.id + '/';
                                                                var 
flickrUpload = {
                                                                        name: 
fileName,
                                                                        url: '',

-- 
To view, visit https://gerrit.wikimedia.org/r/55874
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57900feba9eafc5c4790b17459c857bccdf9e236
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Nischayn22 <nischay...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to