Fix software update check not working
This commit is contained in:
parent
c9ea868613
commit
fa511c3eab
1 changed files with 2 additions and 2 deletions
|
@ -31,14 +31,14 @@ class SoftwareUpdateCheckService < BaseService
|
|||
end
|
||||
|
||||
def version
|
||||
return @version if @version.present?
|
||||
|
||||
if ENV.fetch('UPDATE_CHECK_SOURCE', 'kmyblue') == 'kmyblue'
|
||||
@version = "#{Mastodon::Version.kmyblue_major}.#{Mastodon::Version.kmyblue_minor}"
|
||||
@version += '-lts' if Setting.check_lts_version_only
|
||||
else
|
||||
@version = Mastodon::Version.to_s.split('+')[0]
|
||||
end
|
||||
|
||||
@version
|
||||
end
|
||||
|
||||
def process_update_notices!(update_notices)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue