MCPcopy Index your code
hub / github.com/apache/answer / hasParentQuestion

Method hasParentQuestion

internal/schema/simple_obj_info_schema.go:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98func (s *SimpleObjectInfo) hasParentQuestion() bool {
99 switch s.ObjectType {
100 case constant.AnswerObjectType, constant.CommentObjectType:
101 return len(s.QuestionID) > 0 && s.QuestionID != "0"
102 default:
103 return false
104 }
105}
106
107func (s *SimpleObjectInfo) isObjectRestricted() bool {
108 switch s.ObjectType {

Callers 1

CheckVisibilityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected