diaspora/app
Vinothan Shankar 2ace9b47b1 * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog
Hardly a total fix, but it's a start.  Based on meitar/diaspora:b5c01598.

* app/models/services/tumblr.rb: style: double-quote string

Line 22.  Change from single-quotes.

* app/models/services/tumblr.rb: parse URL only for blogs we care about

...which in this case is just the primary.

This also fixes the failed test in 7079fda (and by extension, 7a1d3a9).

* spec/models/services/tumblr_spec.rb: Add "primary" flag to test user-info

* spec/models/services/tumblr_spec.rb: Add a secondary blog to test user-info

This should not cause a request to be issued, so we can continue to
expect the request for the primary blog only.  Any request for the
secondary indicates a bug in the service implementation.

* spec/models/services/tumblr_spec.rb: Make the second blog returned the primary

Just to catch if it's picking the first one

* app/models/services/tumblr.rb: use blogs.find instead of blogs.each

Since we're only handling the primary blog, this should be easy enough

* app/models/services/tumblr.rb: Remove redundant if block

The condition it would have caught is dealt with by the ifnone on the find

* app/models/services/tumblr.rb: Style: remove space between { and |
2015-09-07 12:45:16 +02:00
..
assets adapt templates to allow moderator to view reports 2015-09-07 12:29:46 +02:00
controllers refactor moderator role and add specs 2015-09-07 12:32:09 +02:00
helpers Check if person is nil in person_image_tag 2015-08-06 22:55:41 +02:00
mailers add moderators to report email recievers 2015-09-07 12:31:25 +02:00
models * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog 2015-09-07 12:45:16 +02:00
presenters add moderators to report email recievers 2015-09-07 12:31:25 +02:00
serializers/export added post guid to the post_serializer 2015-07-11 00:17:01 +02:00
services Extract service from comments controller 2015-08-09 18:35:11 +02:00
uploaders Add a token the filename for exported user data 2015-04-22 20:19:17 +02:00
views add moderators to report email recievers 2015-09-07 12:31:25 +02:00
workers add moderators to report email recievers 2015-09-07 12:31:25 +02:00