Skip to content

Commit

Permalink
Fix software update check not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 21, 2023
1 parent c9ea868 commit fa511c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/software_update_check_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ def api_url
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)
Expand Down

0 comments on commit fa511c3

Please sign in to comment.