Answer - Build Q&A community
An open-source knowledge-based community software. You can use it to quickly build your Q&A community for product technical support, customer support, user communication, and more.
To learn more about the project, visit answer.dev.
Screenshots
Quick start
Running with docker
docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
For more information, see INSTALL.md
Contributing
Contributions are always welcome!
See CONTRIBUTING.md for ways to get started.
docker启动失败
Describe the bug docker启动失败,在一个未知IP上监听了53端口 To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
a problem about website address in confirm url
I just run my local demo and register a none-admin user, the address in confirm url should not be 127.0.0.1, but my own domain name, how to config it?
Welcome to answer
Click the following link to confirm and activate your new account: http://127.0.0.1:9080/users/account-activation?code=af6e98e5-59e1-480c-a6c3-ebedff76d200
If the above link is not clickable, try copying and pasting it into the address bar of your web browser.
Panic
Add to Head not working
Describe the bug There is no output when you add something in the head area. Neither text nor javascript.
To Reproduce Steps to reproduce the behavior:
Expected behavior Added content should be visible in the head area.
Platform (please complete the following information):
两次安装Answer失败-已经解决,可以启动
第一次失败
看样子,是数据库连接出现了错误。
当我重新下载了一次源代码到另一个目录里,尝试使用docker命令,发现还是失败了。
然后,使用二进制运行,也找不到门路,让人不愉快的体验。
我看INSTALL.md,也说的不是很清楚。
总之,很难受,要搞懂这个错误,需要追踪很长的代码,有点沮丧,刚开始就感觉一座大山在前面。
我觉得缺少一个整体的系统启动流程图,让人有一个清晰的头绪,但是作为一个经典的前后端项目,它必然就很简单,但是目前我要追踪很多代码,才能让它在本机启动。
头大,现在一点思路都没有,然后。
第二次失败
我尝试使用 docker-compose up
我的环境是 Ubuntu20.04, 直接下载的最新的代码进行部署,遇到了docker容器连接错误的问题。
Suggest to add the tiltle when copy link on a question page
Is your feature request related to a problem? Please describe. When I before sharing a question to team, I would like to copy the link, but the
copy
function doesn't copy the question title, so I need to add the question description again.Describe the solution you'd like Click the
copy link
button, copy the question title and link at the same time.使用搜索功能接口异常
镜像版本:answerdev/answer:latest
接口:/answer/api/v1/search?q=sdasd&order=relevance&page=1&size=20
返回值: {"code":500,"reason":"base.unknown","msg":"Unknown error.","data":null}
日志: 2022-11-04 04:10:43.162 ERROR /go/src/github.com/answerdev/answer/internal/base/handler/handler.go:27 near "UNION": syntax error /go/src/github.com/answerdev/answer/internal/controller/search_controller.go:41 github.com/answerdev/answer/internal/controller.(*SearchController).Search /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:173 github.com/gin-gonic/gin.(*Context).Next /go/src/github.com/answerdev/answer/internal/base/middleware/auth.go:47 github.com/answerdev/answer/internal/base/middleware.(*AuthUserMiddleware).Auth.func1
Can not update admin password
After up and running with fly.io, I could use the website normally.
But I still can not update my admin password from the account interface. If anyone has the same issue, please help.
send email dial fail
/go/src/github.com/answerdev/answer/internal/service/export/email_service.go:108 send email to [email protected] failed: dial tcp 75.2.26.18:465: i/o timeout
can't connect 75.2.26.18:465
Fix RouteNode type error
Problem Description:
interface RouteNode extends RouteObject
The original codeRouteNode
directly inheritsRouteObject
, and an error will be reported: An interface can only extend the object type or the intersection of object types using static known members. ts(2312)Problem causes:
RouteObject
is a dynamic type:IndexRouteObject | NonIndexRouteObject
It is not a definite static type and therefore cannot be directly inheritedSolution:
Declare certain types for
IndexRouteObject
andNonIndexRouteObject
respectively:IndexRouteNode
andNonIndexRouteNode
Re-declare the dynamic type:type RouteNode = IndexRouteNode | NonIndexRouteNode
问题描述:
interface RouteNode extends RouteObject
原代码RouteNode
直接继承了RouteObject
,会报错:接口只能扩展使用静态已知成员的对象类型或对象类型的交集。ts(2312)问题原因:
RouteObject
是一个动态类型:IndexRouteObject | NonIndexRouteObject
它不是一个确定的静态类型,因此不能够被直接继承解决方案:
对
IndexRouteObject
和NonIndexRouteObject
分别声明确定的类型:IndexRouteNode
和NonIndexRouteNode
再声明动态类型:type RouteNode = IndexRouteNode | NonIndexRouteNode
Forgot Password feature is not working
Describe the bug Forgot Password feature is not working.
To Reproduce Steps to reproduce the behavior:
Expected behavior After i've click that link, i should be redirect to forgot password page and fill up the new password
Screenshots

Desktop (please complete the following information):
Additional context Add any other context about the problem here.
email validation does not allow [email protected] during account setup
while setting up the site,my email in the form of [email protected] was not allowed, most likely caused by the '.' in the name.
Fortunately, I could fake one and then change it to the correct one later after login, in which case, the email was not validated and saved without problem.
CORS Error while trying to use APIs
Is your feature request related to a problem? Please describe. I would like to use answer as a backend and build my own frontend that I can embed in my existing platform. (Basically a custom client/user interface for answer) Possibly related to #127
Describe the solution you'd like I would like a configurable option, which allows answer APIs to be accessed from authorised domains. i.e. enable CORS.
Describe alternatives you've considered Alternative would be to create fork and use only the backend and modify CORS options, not exactly a favourable alternative. I am open to recommendations.
Importing from Question2answer
Hi, In order to enlarge your userbase it might be a good idea to add a feature/workflow/whatever to import content from a site built with Question2answer, https://www.question2answer.org/.
Just an idea.
Cheers, Marco
Search multiple tags with no results
Describe the bug Without keywords when searching using
[tag]
prompt, there's no results. This is related with issue #136 .To Reproduce Steps to reproduce the behavior:
Expected behavior Can show all results without keywords when searching.
Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):
IndieAuth Support
I would like to one day set up an Answers instance for Yarn.social for the (small, but) growing community.
In order to continue to project the privacy of users it would be nice to have support for IndieAuth, which works a bit like OAuth but is a bit simpler and designed to support "logging in via your own domain".
As all instances of Yarn.social pods (
yarnd
) today do not require any kind of email address or personal information and are also valid IndieAuth providers, this is ideal as users in the community can just login with their existing credentials against their domain/pod.Thank you for considering this feature! 🙏 I fully support many of the aspects of the IndieWeb such as IndieAuth as they tend to err on the side of privacy and owning your own data.