Commit graph

122 commits

Author SHA1 Message Date
Kijin Sung
a9045b956d Add methods to enable searching and counting commnets by document_srl AND member_srl #2625 2025-12-17 16:20:47 +09:00
Kijin Sung
72be83cb3c Fix incorrect comment on getCommentCountByDate() 2025-12-17 16:10:40 +09:00
Kijin Sung
bbd33e53ca Fix fatal error when parent comment is not defined 2025-03-01 12:07:24 +09:00
Kijin Sung
a4e9eb4a00 Add option to limit the maximum thread depth of comments 2024-10-09 16:45:36 +09:00
Kijin Sung
9247e602b5 Clean up return value juggling in getNewestCommentList() 2024-04-25 11:54:01 +09:00
Kijin Sung
d519cd2516 Fix error when document was not found 2024-03-13 00:50:22 +09:00
Kijin Sung
d14e2dd3fd Use simple query without JOIN in admin comment list, to improve query speed with millions of comments 2024-03-12 23:18:51 +09:00
Kijin Sung
07e252d2ac Fix #2276 warning/notice when $obj doesn't have all the expected attributes 2024-01-20 13:20:11 +09:00
dewekk
451ca57602
댓글 페이지 수 설정 안되는 문제 수정 2023-12-14 16:28:59 +09:00
Kijin Sung
433103bf92 Also apply #2192 fix to document and comment modules; defend null 2023-10-03 14:32:15 +09:00
Kijin Sung
9ca2c94fe4 Fix #2186 type error when unexpected values are passed to columnList 2023-09-26 20:08:08 +09:00
Kijin Sung
c5267b42fd Remove trailing whitespace 2023-01-30 21:37:41 +09:00
Kijin Sung
651238916b Fix deprecation warnings in PHP 8.2 2023-01-17 00:15:12 +09:00
Kijin Sung
bc3502988e Fix incorrectly capitalized class names in document and comment modules 2022-12-27 23:09:25 +09:00
Kijin Sung
2a3f5d3c51 Add statusList parameter to most comment model methods #2035 2022-12-18 01:18:26 +09:00
Kijin Sung
f3ed346e0b Delete unnecessary parameters when calling getComment() 2022-12-18 00:16:40 +09:00
dewekk
03e186f80c 댓글 추천/비추천 취소 버튼 추가
댓글 메뉴에 댓글 추천/비추천 취소 버튼 추가
2022-11-23 23:16:48 +09:00
dewekk
a21d14ac09 댓글 신고 취소 기능 추가 2022-11-23 21:47:57 +09:00
Kijin Sung
3925c24487 Add option to disable admin content protection
최고관리자의 글을 게시판 관리자가 수정/삭제하지 못하도록 하는 기능은
게시판을 위키 등 협업 용도로 사용하는 경우 불편을 유발할 수 있으므로
옵션으로 켜고 끌 수 있도록 합니다. 기본값은 수정/삭제 금지입니다.
2021-12-30 23:55:10 +09:00
Kijin Sung
786dace639 Fix various warnings in PHP 8.0 2021-06-20 22:25:16 +09:00
Kijin Sung
8c0532297b Remove unnecessary arguments from query 2021-04-26 00:19:38 +09:00
Kijin Sung
57e702daea Fix count() error in PHP 8.0 in content widget
https://xetown.com/questions/1508131
2021-01-14 01:14:27 +09:00
Kijin Sung
82e1625d0c Fix #1525 error in PHP 8.0 in _arrangeComment if $list is null 2020-12-25 23:09:51 +09:00
Kijin Sung
49923844b2 Various fixes to remove warnings in PHP 8.0 2020-12-15 00:18:42 +09:00
Kijin Sung
b354d8af49 Revert 61f6456b and add a warning instead 2020-10-30 15:57:18 +09:00
Kijin Sung
61f6456b6c Remove support for $is_admin in getDocument(), getDocuments(), getComment()
단순히 문서나 댓글을 불러오는 동작에서는 $is_admin 변수를 무시하도록 합니다.
서드파티 자료에서 사용할 경우 해당 문서나 댓글에 관리자 권한이 부여되어 버려서
보안취약점이 발생할 수 있기 때문입니다.

실제로 많은 서드파티 자료들이 이 변수가 왜 필요한지, 어떤 기능을 하는지
이해하지 못하는 상태로 무작정 복붙하여 사용하고 있습니다.
이러한 서드파티 자료에서 이 패치로 인해 오작동이 발생할 경우에는
그 때 가서 적절한 조치를 취하도록 하겠습니다.

getDocumentListByMemberSrl(), getCommentListByMemberSrl(), getCommentList() 등
일부 메소드에서는 이미 $is_admin 변수를 무시하도록 되어 있습니다.
2020-10-28 00:30:39 +09:00
Kijin Sung
4102c4bda2 Use 'search' operation to improve search accuracy 2020-10-01 16:51:21 +09:00
Kijin Sung
177a6c6b7d Merge branch 'develop' into next 2020-09-29 00:23:30 +09:00
Kijin Sung
b68d571a19 Fix #1414 incorrect behavior when member_srl is negative 2020-09-28 01:21:41 +09:00
Kijin Sung
3f9d406f8d Fix #1295 empty list returned in procCommentGetList 2020-05-26 19:19:20 +09:00
Kijin Sung
c90d529c74 Change method calls to static in many core modules 2020-05-24 20:43:52 +09:00
Kijin Sung
9b5decbd2e Convert most methods in CommentModel to static 2020-05-23 19:10:13 +09:00
Kijin Sung
3430e21be4 Fix unnecessary query when there are no polls 2020-05-18 19:12:06 +09:00
Kijin Sung
f1c15ab1e1 Fix #1283 do not show comments on secret documents in integration search 2020-05-17 20:06:27 +09:00
Kijin Sung
b8665d73cb Fix #1214 add option to display the first page of comments by default 2020-03-23 01:45:25 +09:00
Kijin Sung
6961155f9c Recognize comment_srl in address to find cpage automatically #904 #1191 #1192 2019-09-14 20:05:33 +09:00
Kijin Sung
73c5b6d84b Fix #1190 make comment page count configurable 2019-09-13 20:11:32 +09:00
Kijin Sung
9b64b0f925 Make getCommentList and getTotalCommentList triggers consistent with getDocumentList trigger 2019-09-13 19:58:51 +09:00
Kijin Sung
2238679527 Add search function to member's document and comment list 2019-09-13 18:11:49 +09:00
Kijin Sung
10c8d11785 Add FeatureDisabled and SecurityViolation exception classes 2018-09-06 10:00:47 +09:00
Kijin Sung
ad00ac800b Update document, comment, file modules to throw exceptions 2018-09-05 23:55:50 +09:00
Kijin Sung
09f22aa42e Fix #962 hide deleted comment from integration search 2018-01-12 19:40:09 +09:00
Kijin Sung
b6aac0beac Use 'equal' not 'like' for searches on user_id, user_name, nick_name
user_id, user_name, nick_name 검색에는 like가 아닌 equal 조건을 사용하도록 변경함.

이름이나 닉네임으로 검색할 때 LIKE %검색어% 문법이 사용되어
검색 속도가 느려지는 것은 물론, 특정 회원의 작성글 보기 메뉴를 클릭하면
검색어가 포함된 닉네임을 가진 다른 회원의 글까지 모두 표시되어
닉네임을 변경했거나 다중아이디를 사용하는 것으로 오해받는 문제를 수정함.
(예: '라이믹스' 닉네임을 검색하면 '라이믹스최고' 회원의 글도 검색되었음)
2017-12-21 14:06:46 +09:00
conory
f8ac11bda6 isAccessible()로 통일 2017-12-12 13:23:45 +09:00
Kijin Sung
ae971306b7 Change instanceof Object to instanceof BaseObject 2017-12-01 01:10:48 +09:00
Kijin Sung
84e5542d77 Remove unnecessary use of BaseObject
- 트리거 등 반환값이 필요하지 않은 곳에서 new BaseObject()를 반환하는 것 삭제
- 모듈 설치, 업데이트 후 무의미한 new BaseObject()를 반환하는 것 삭제
- 사용자에게 에러 메시지를 돌려주는 용도로 new BaseObject(-1, '에러메시지')를
  사용하는 경우는 대부분 $this->setError()로 변경함. 언어 변환과 sprintf()
  처리까지 한 번에 이루어지므로 이쪽이 더 편리함.
2017-12-01 00:54:51 +09:00
BJRambo
f3f40f6859 php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경 2017-11-28 20:01:28 +09:00
Kijin Sung
877863854e Add triggers before and after getCommentList()
예전에 getDocumentList() 전후에 트리거를 추가한 것처럼 댓글 목록에서도
트리거를 사용하여 검색 조건을 바꾸거나 결과를 조정할 수 있도록 함.
2017-11-25 15:32:54 +09:00
conory
04ab022864 content 위젯에서 휴지통으로 이동된 문서의 댓글, 비밀댓글이 표시되는 문제 수정 2017-08-04 14:49:35 +09:00
conory
820c725d69 convertHTML() 로 변경 2017-07-13 11:15:12 +09:00