Releases: ruby-china/homeland
v3.11.0
What's Changed
- Fix default title display for likes by @gith-u-b in #1384
- Modify test file to fix default title display for likes by @gith-u-b in #1385
- Add Topic References by @huacnlee in #1387
- No need pin @popperjs/core by @Eric-Guo in #1392
- Fix load_async still got error after Rails 7.1.3 by @Eric-Guo in #1400
- Add test for User#login special case. by @huacnlee in #1410
- Update
Dotenv::Railtie
toDotenv::Rails
. by @huacnlee in #1412 - Improve mobile style by @huacnlee in #1413
- Fix missed bootstrap var in dark mode. by @huacnlee in #1416
- Fix pagination current page background color by @huacnlee in #1418
- Upgrade Rails 8.0 by @huacnlee in #1434
New Contributors
Full Changelog: v3.10.0...v3.11.0
v3.10.0
What's Changed
- Upgrade to use Ruby 3.2.0 and enable YJIT.
- Docker image switch from
slim-buster
toalpine
, requirement Docker v20+.
NOTE: Before you upgrade Homeland v3.10.0, please ensure your Docker Engine version v20+.
Other changes
Full Changelog: v3.9.0...v3.10.0
v3.9.0
What's Changed
- Remove Section model to make simply Node by @huacnlee in #1243
- View Component by @huacnlee in #1241
- Remove Homepage, just use topics#index as Homepage. by @huacnlee in #1246
- Improve I18n by @huacnlee in #1247
- Fix missing end tag for span by @Dounx in #1256
- typo: 登陆 -> 登录 by @uinz in #1258
- fix bug: 修复关注、取消关注,用户名中间带点"."号 点击报错 by @jinhuisheng in #1261
- Fix i18n in js by @Dounx in #1266
- Fix I18n auto_locale for JavaScript by @Dounx in #1267
- ImageProxy by @huacnlee in #1271
- BREAKING CHANGES: Upgrade profile.contacts, profile.rewards as JSON type store. by @huacnlee in #1272
- Bootstrap v5 by @huacnlee in #1277
- Fix follow info text overflow by @renny-ren in #1288
- Fix the wrong floor for replies by @Dounx in #1291
- Add autocorrect lint by @huacnlee in #1292
- Typo fix by @Eric-Guo in #1294
- Fixed container layout caused by force set grid padding by @qichunren in #1298
- fix markdown guides by @RanX12 in #1274
- Not allowed upload svg image currently, fixed XSS issue #1299 by @qichunren in #1300
- Support sub and sup tag in post markdown editor. Fixed issue #1126 by @qichunren in #1301
- Upgrade Rails 7.0 by @huacnlee in #1304
- Upgrade Npms for try to fix Webpacker precompile in production env. by @huacnlee in #1305
- Remove HomeController#index action, not used anywhere by @qichunren in #1310
- Remove openHeaderSearchBox and closeHeaderSearchBox function by @qichunren in #1309
- I18n by @qichunren in #1312
- Add Countable and order hot user by yearly replies count by @huacnlee in #1317
- Lock CI autocorrect version by @huacnlee in #1319
- Fix text color of search input in dark mode by @yesmeck in #1321
- Not directly require model in initialize process by @qichunren in #1325
- User online status track by @qichunren in #1334
- Add to use Tailwind CSS. by @qichunren in #1335
- Sidebar active users by @qichunren in #1336
- Improve topic hits count, make it more realistic by @qichunren in #1341
- Support Redis 5.0, bump shakapcker and pin bootstrap by @Eric-Guo in #1354
- SSO document link changed and fix other small bug. by @Eric-Guo in #1356
- Upgrade RuCaptcha to use Rust core version captcha, and new style coming.
- Update to use Rust version autocorrect.
- Upgrade OmniAuth 2.1 to fix memory leaks.
New Contributors
- @uinz made their first contribution in #1258
- @jinhuisheng made their first contribution in #1261
- @RanX12 made their first contribution in #1274
Full Changelog: v3.8.4...v3.9.0
v3.8.3
Features:
- Improve Admin / Users features.
- Improve Admin / Photos as card list view and support search.
- Add batch delete user's 10 photos in Admin / User / Edit.
- Add captcha_enable setting (default: false), for allows disable captcha feature.
- Hide captcha settings when captcha not enable.
Fix:
- Fix team destroy and add test;
- Fix admin / users / edit batch delete photos to use destroy method for fix that trigger photo delete callbacks.
- Delete avatar file after User soft_delete or destroy.
- Fix #1251 devise mailer with async.
v3.8.2
New feature:
- We use Caddy for automatically manage SSL.
- The env
cert_domain
has removed. - The env
https
has removed, now Homeland will enable https for all. - The env
domain
now will use for Caddy generate SSL, please make sure that bind on your server.
Now we do not care about SSL renew, Caddy will help us to do that.
Need update homeland-docker to latest or use 3-8-stable branch.
Upgrade
Update homeland-docker
cd homeland-docker
git pull fetch && git checkout 3-8-stable
Update homeland
make update
make start
v3.8.1
v3.8.0
新功能
- 新增暗模式(Dark mode),并会随着系统设置自动切换;
- 新增 Turbolinks prefetch 提高页面加载速度;
- 改进 Topic 列表交互,整行支持点击;
- 支持 Twitter 和 Wechat 登陆,并调整配置,支持在后台配置登陆的 app_key, app_secret;
- 完善三方登陆(Twitter、GitHub、Wechat),支持在首次登陆的时候完善用户信息以后完成注册;
- 话题详情页面右侧增加用户 Card,并显示用户信息;
- 实现允许在后台修改部分需要重启的配置,修改后通过重启功能生,现在起许多配置项可以直接在后台修改;
- 主导航改进,支持响应式布局下折叠;
- 新增 Twitter Card 支持,现在分享到 Twitter 将会支持卡片模式展示;
其他变化
- 升级 Rails 6.1;
- 废弃配置:
github_token
,github_secret
,以及各种带.
的配置信息,请参考 配置文档
v3.7.1
Changes:
- Upgrade Puma 5.0;
- Autofill the node while creating topic in list page.
Bugfix:
- Fix 406 issue while submiting reply by key combinations.
- Fix icon missing issue.
- Fix users can unfollow users who has deleted.
- Fix incorrect charset error in user profile page.
- Fix search page error when item is nil;
- Fix 500 error when user.rewards is nil;
- Fix 500 error when search query is empty;
v3.7.0
重构用户联系字段,奖励设置字段,剥离到新的 profiles
表,以避免设置修改的时候缓慢的问题,并依靠权限的设置支持更多的扩展。
此次升级,在启动的时候将会自动迁移老数据到新的表,启动需要一定时间等待。
受数据量多少影响,启动时间可能会很久,请手动检查数据是否完成升级。
升级内容参见:https://github.com/ruby-china/homeland/blob/0963eac06ba4e77601d31fa526f81ff84103b15d/db/migrate/20200721022652_migrate_profile_data.rb
升级新版本会复制老数据到新的结构,不影响老数据,如升级失败,可以尝试回滚。
升级完成以后,请检查用户个人扩展联系信息,比如 Facebook、Instagram,奖励的支付宝、微信二维码等信息是否正确,如无问题,可以手动执行下面的流程清理老的废旧数据。
执行 make console
进入 Rails Console (做一下动作之前,建议先备份数据库)
irb> Setting.where(thing_type: "User")
irb> Setting.where(thing_type: "User").delete_all
v3.6.0
升级此版本请注意更新 homeland-docker
- 此版本去掉了 ElasticSearch,改用 PostgreSQL 内置的全文搜索来实现搜索功能,以节省 1.5G 内存开销;
- 新增暗模式(Dark Mode),支持 iOS / macOS 自动根据系统配置切换;
- Docker Image 基础镜像从 Alpine Linux 切换为 Debain Slim;
升级 Homeland Docker 到最新的 master 版本
以下动作的目的是更新 Docker Compose 的配置信息,并重新构建 Docker Container,以便于在过程中去掉 ElasticSearch Container,如果你熟悉 Docker,也可以手动操作。
主要是更新 homeland/homeland 的 Docker Image,去掉 ElasticSearch Container,重新启动。
$ git pull origin master
$ make update
$ make stop-all
$ make start
因为搜索服务换了,所以你需要执行 make reindex
重建搜索索引。