diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-14 00:04:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 00:04:30 +0200 |
commit | 9239e4ce4d4e958e62552d4a01183d0295c020f5 (patch) | |
tree | 8f33707c027e2c10b62c0c6fffe1eb3bf27d38ef /app/presenters | |
parent | 06f26e09b4bff120181eaaeb70a833482368ea63 (diff) |
Uploads for admin site settings (#4913)
* Improve OpenGraph tags for about pages * Add thumbnail admin setting * Fix error * Fix up
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/instance_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb index 8104b7531..c9e3c31a1 100644 --- a/app/presenters/instance_presenter.rb +++ b/app/presenters/instance_presenter.rb @@ -35,4 +35,8 @@ class InstancePresenter def source_url Mastodon::Version.source_url end + + def thumbnail + @thumbnail ||= Rails.cache.fetch('site_uploads/thumbnail') { SiteUpload.find_by(var: 'thumbnail') } + end end |