about summary refs log tree commit diff
path: root/app/lib/exceptions.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-22 21:34:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-22 21:34:19 +0100
commit2d2154ba75279186b064c887452b7d6ee70b8ba2 (patch)
treee27a84e2245184c899f2b347d63af16210973660 /app/lib/exceptions.rb
parentf91b6fa9e15029f23be7be3b796eca122e5b5588 (diff)
Add "locked" flag to accounts, prevent blocked users from following, force-unfollow blocked users
Diffstat (limited to 'app/lib/exceptions.rb')
-rw-r--r--app/lib/exceptions.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/exceptions.rb b/app/lib/exceptions.rb
new file mode 100644
index 000000000..359228c29
--- /dev/null
+++ b/app/lib/exceptions.rb
@@ -0,0 +1,6 @@
+# frozen_string_literal: true
+
+module Mastodon
+  class Error < StandardError; end
+  class NotPermitted < Error; end
+end