about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-11 15:39:31 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-11 15:39:31 +0100
commit7951e7ffd5cf5932f7206b52cd85f602abd9b25d (patch)
tree730a967286ec9f14e8ac583d359dc3357720a3fd
parent10739df458a225a88f6301e6cd819ec3a533255d (diff)
Add ruby version to Gemfile, move devDependencies in package.json to dependencies,
fix bug in process feed service
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock3
-rw-r--r--app/services/process_feed_service.rb2
-rw-r--r--package.json6
4 files changed, 8 insertions, 4 deletions
diff --git a/Gemfile b/Gemfile
index 6bf95ec5e..590fb2124 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 
 source 'https://rubygems.org'
+ruby '2.3.1'
 
 gem 'rails', '~> 5.0.1.0'
 gem 'sass-rails', '~> 5.0'
diff --git a/Gemfile.lock b/Gemfile.lock
index 2467b76cc..2408df68d 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -463,5 +463,8 @@ DEPENDENCIES
   webmock
   will_paginate
 
+RUBY VERSION
+   ruby 2.3.1p112
+
 BUNDLED WITH
    1.13.6
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index 3860a3504..f085fcd8e 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -56,6 +56,8 @@ class ProcessFeedService < BaseService
         end
       end
 
+      return if status.nil?
+
       status.save!
 
       NotifyService.new.call(status.reblog.account, status) if status.reblog? && status.reblog.account.local?
diff --git a/package.json b/package.json
index 8c75d632b..907e4a238 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
     "test": "mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/*.test.jsx",
     "storybook": "start-storybook -p 9001 -c storybook"
   },
-  "devDependencies": {
+  "dependencies": {
     "@kadira/storybook": "^2.24.0",
     "axios": "^0.14.0",
     "babel-plugin-react-transform": "^2.0.2",
@@ -52,9 +52,7 @@
     "reselect": "^2.5.4",
     "sass-loader": "^4.0.2",
     "sinon": "^1.17.6",
-    "style-loader": "^0.13.1"
-  },
-  "dependencies": {
+    "style-loader": "^0.13.1",
     "webpack": "^1.14.0"
   }
 }