display plain pleroma version string

This commit is contained in:
Tao Bror Bojlén 2019-08-31 20:03:29 +01:00
parent 7d97e2e397
commit b51ddddbeb
No known key found for this signature in database
GPG key ID: C6EC7AAB905F9E6F
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Display plain Pleroma version rather than the Mastodon-compatible string
### Security ### Security
## [2.8.2 - 2019-08-31] ## [2.8.2 - 2019-08-31]

View file

@ -39,7 +39,7 @@ defmodule Backend.Crawler.Crawlers.Mastodon do
user_count = get_in(instance, ["stats", "user_count"]) user_count = get_in(instance, ["stats", "user_count"])
if is_above_user_threshold?(user_count) or has_opted_in?(domain) do if is_above_user_threshold?(user_count) or has_opted_in?(domain) do
Map.merge(nodeinfo, crawl_large_instance(domain, instance)) Map.merge(crawl_large_instance(domain, instance), nodeinfo)
else else
ApiCrawler.get_default() ApiCrawler.get_default()
|> Map.merge(nodeinfo) |> Map.merge(nodeinfo)