about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorDaigo 3 Dango <zunda@users.noreply.github.com>2017-08-22 20:54:19 +0000
committerEugen Rochko <eugen@zeonfederated.com>2017-08-22 22:54:19 +0200
commit696c2c6f2f3338df121cf17389478da9ecab11af (patch)
tree957a1e6d30482048ea08e617bec77e784b15896b /app/presenters
parent5927b43c0fc74e66cd3a882b565ea70236559c02 (diff)
Add Mastodon::Source.url (#4643)
* Add Mastodon::Source.url

* Update spec

* Refactor

Move things frmo Mastodon::Source to Mastodon::Version
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/instance_presenter.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 5d5be58ba..8104b7531 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -31,4 +31,8 @@ class InstancePresenter
   def version_number
     Mastodon::Version
   end
+
+  def source_url
+    Mastodon::Version.source_url
+  end
 end