about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-24 17:23:59 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-24 17:23:59 +0100
commit8da8387afee66e17b3ec864ba84a7a065187818b (patch)
tree756b66daa33fd6f53b3c0dea7b6ba8c3ee61c56c /app/helpers
parentfa7868675d0952f8e4e1aa2f6b77586bb56de2c1 (diff)
Add shared statuses to the database
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 36e31929e..7a74a4d96 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -10,6 +10,10 @@ module ApplicationHelper
     return match[1] unless match.nil?
   end
 
+  def local_id?(id)
+    id.start_with?("tag:#{LOCAL_DOMAIN}")
+  end
+
   def subscription_url(account)
     add_base_url_prefix subscriptions_path(id: account.id, format: '')
   end