No description
Find a file
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
app * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog 2015-09-07 12:45:16 +02:00
bin add rubocop binstub [ci skip] 2015-06-05 09:44:22 +02:00
config add moderators to report email recievers 2015-09-07 12:31:25 +02:00
db Refactor PostService and extract its tests 2015-07-26 13:10:24 +02:00
features Disable all network requests in Cucumber suite 2015-08-30 01:14:49 +02:00
graphics Replace Make Something text by the diaspora ball logo on registration page 2015-03-26 00:32:41 +01:00
lib Update NodeInfo to final 1.0 schema 2015-08-23 14:45:20 +02:00
public Replace default.html with a regular view 2015-03-28 23:12:07 +01:00
script replace foreman with eye 2015-05-19 02:55:31 +02:00
spec * app/models/services/tumblr.rb (Services::Tumblr#post): Post only to primary blog 2015-09-07 12:45:16 +02:00
tmp/pids ensure tmp/pids exists [ci skip] 2015-05-21 17:25:47 +02:00
vendor Update NodeInfo to final 1.0 schema 2015-08-23 14:45:20 +02:00
.editorconfig add editorconfig 2015-02-14 17:07:56 +01:00
.foreman Add vines as foreman task 2014-11-13 11:36:55 +01:00
.gitignore optimized sprites 2015-05-29 11:39:30 +02:00
.hound.yml Enable Ruby linting 2015-03-16 12:46:13 +01:00
.jshintignore Use jshintrb and guard-jshintrb instead of jshint 2015-03-18 10:49:17 +01:00
.jshintrc Use jshintrb and guard-jshintrb instead of jshint 2015-03-18 10:49:17 +01:00
.rspec Replace spork with spring, update & use binstubs 2014-12-01 08:06:07 +01:00
.rubocop.yml rubocop: skip db/schema.rb [ci skip] 2015-08-03 03:11:43 +02:00
.ruby-gemset Replace .rvmrc by .ruby-version 2014-03-24 15:33:29 +01:00
.ruby-version drop Ruby 1.9 support, recommend Ruby 2.1 2014-08-29 22:56:47 +02:00
.slugignore added a few more files to ignore for the slugignore [ci skip] 2012-01-15 20:04:46 -08:00
.travis.yml Use commit_subject for Travis IRC notifications 2015-07-15 15:48:41 +02:00
AUTHORS
browserlist bump autoprefixer-rails 2015-02-28 02:36:14 +01:00
Changelog.md add more specs to test moderator role 2015-09-07 12:38:12 +02:00
CODE_OF_CONDUCT.md Add Code of Conduct 2015-08-29 21:38:11 +02:00
config.ru add x-frame headers 2012-11-18 09:55:10 +00:00
COPYRIGHT remove unused social media logos and add attribution 2015-05-29 11:39:01 +02:00
FederationProcfile basic federation profile testing stuff 2012-02-14 10:58:57 -08:00
Gemfile Bump rails_admin 2015-08-30 21:52:52 +02:00
Gemfile.lock Bump rails_admin 2015-08-30 21:52:52 +02:00
GNU-AGPL-3.0
Guardfile Use jshintrb and guard-jshintrb instead of jshint 2015-03-18 10:49:17 +01:00
Procfile replace foreman with eye 2015-05-19 02:55:31 +02:00
Rakefile Bye Resque. Ohai Sidekiq. 2013-03-21 23:39:07 +01:00
README.md Add Code of Conduct 2015-08-29 21:38:11 +02:00
redis-integration1.conf seperate and move redis dump files so they don't mess with installed redis 2012-05-08 12:41:57 +02:00
redis-integration2.conf seperate and move redis dump files so they don't mess with installed redis 2012-05-08 12:41:57 +02:00

diaspora*

A privacy-aware, distributed, open source social network

master: Build Status master stable: Build Status stable | develop: Build Status develop | Dependency Status Code Climate

Project site | Wiki | Bugtracker | Discussions | Mailing lists | License | Authors

Installation

You don't have to install diaspora* to use the network. There are many servers connected to diaspora*s network which are open to anyone, and you can create an account on one of these servers. Have a look at our tips for finding a home, or you can just go straight to the list of open servers to sign up.

Want to own your data and install diaspora*? Whether you just want to try it out, want to install it on your server or want to contribute and need a development setup, our installation guides will get you started!

Questions?

Have a look at our FAQs for users, for pod administrators or for developers.

Still haven't found an answer? Talk to us! Read how we communicate. We're here to answer all your questions.

Contribute

To keep diaspora* growing and improving we need all help we can get. Whether you can contribute code, ideas, translations, bug reports or simply extend the community as a helpful user or pod administrator, your help is welcome!

Everyone interacting in diasporas codebases, issue trackers, chat rooms, mailing lists, the wiki, and the Loomio group is expected to follow the diaspora* code of conduct.

Security

Found a security issue? Please disclose it responsibly. We have a team of developers listening to security@diasporafoundation.org. The PGP fingerprint is AB0D AB02 0FC5 D398 03AB 3CE1 6F70 243F 27AD 886A