Horizon:高上下文主题卡片

我作为管理员也可以强制执行这个选项吗?因为标签是论坛体验的一部分,没有它,一些用户可能会错过关于主题的额外上下文。我真的很喜欢现在的 Horizon 主题,它有丰富的主题详情 :tada:

关于“摘录”(Excerpts),可以通过以下方式启用:Enable with bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’,但这对我似乎不起作用。

/var/www/discourse# bin/rails r ‘SiteSetting.always_include_topic_excerpts = true’                                                      
fatal: detected dubious ownership in repository at '/var/www/discourse'                                                                                                   
To add an exception for this directory, call:                                                                                                                             
        git config --global --add safe.directory /var/www/discourse                                                                                                       
/var/www/discourse/config/initializers/000-pg_connection_patch.rb:21:in `rescue in new_client': We could not find your database: discourse. Available database configurations can be found in config/database.yml. (ActiveRecord::NoDatabaseError)                                                                                                                                           
To resolve this error:                                                                                                                                                    
- Did you not create the database, or did you delete it? To create the database, run:                                                                                                                                                                                                                                                               
    bin/rails db:create                                                                                                                                                   
- Has the database name changed? Verify that config/database.yml contains the correct database name.                                             

我不想过多干预此事。我想就这样吧。但还是留下了这个错误,以防我的设置有问题或者 Discourse 中有什么可以修复的地方。

2 个赞