From 2d2154ba75279186b064c887452b7d6ee70b8ba2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 22 Dec 2016 21:34:19 +0100 Subject: Add "locked" flag to accounts, prevent blocked users from following, force-unfollow blocked users --- app/lib/exceptions.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/lib/exceptions.rb (limited to 'app/lib/exceptions.rb') 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 -- cgit