Signed-off-by: Seongmin Lee git@boltless.me
+197
appview/db/comments.go
+197
appview/db/comments.go
···+query := fmt.Sprintf(`update comments set body = "", deleted = strftime('%%Y-%%m-%%dT%%H:%%M:%%SZ', 'now') %s`, whereClause)
+32
appview/db/db.go
+32
appview/db/db.go
···+at_uri text generated always as ('at://' || did || '/' || 'sh.tangled.comment' || '/' || rkey) stored,
+6
-121
appview/db/pulls.go
+6
-121
appview/db/pulls.go
·········-query := `insert into pull_comments (owner_did, repo_at, submission_id, comment_at, pull_id, body) values (?, ?, ?, ?, ?, ?)`func SetPullState(e Execer, repoAt syntax.ATURI, pullId int, pullState models.PullState) error {
+7
-8
appview/db/reference.go
+7
-8
appview/db/reference.go
············
+117
appview/models/comment.go
+117
appview/models/comment.go
···
+2
-46
appview/models/pull.go
+2
-46
appview/models/pull.go
···SourceRev string // include the rev that was used to create this submission: only for branch/fork PRs···
+11
-6
appview/notify/db/db.go
+11
-6
appview/notify/db/db.go
···-func (n *databaseNotifier) NewPullComment(ctx context.Context, comment *models.PullComment, mentions []syntax.DID) {+func (n *databaseNotifier) NewPullComment(ctx context.Context, comment *models.Comment, mentions []syntax.DID) {···
+1
-1
appview/notify/merged_notifier.go
+1
-1
appview/notify/merged_notifier.go
···-func (m *mergedNotifier) NewPullComment(ctx context.Context, comment *models.PullComment, mentions []syntax.DID) {+func (m *mergedNotifier) NewPullComment(ctx context.Context, comment *models.Comment, mentions []syntax.DID) {
+2
-2
appview/notify/notifier.go
+2
-2
appview/notify/notifier.go
······-func (m *BaseNotifier) NewPullComment(ctx context.Context, models *models.PullComment, mentions []syntax.DID) {+func (m *BaseNotifier) NewPullComment(ctx context.Context, models *models.Comment, mentions []syntax.DID) {func (m *BaseNotifier) NewPullState(ctx context.Context, actor syntax.DID, pull *models.Pull) {}
+3
-4
appview/notify/posthog/notifier.go
+3
-4
appview/notify/posthog/notifier.go
···-func (n *posthogNotifier) NewPullComment(ctx context.Context, comment *models.PullComment, mentions []syntax.DID) {+func (n *posthogNotifier) NewPullComment(ctx context.Context, comment *models.Comment, mentions []syntax.DID) {
+3
-3
appview/pages/templates/repo/pulls/pull.html
+3
-3
appview/pages/templates/repo/pulls/pull.html
···-<div id="comment-{{$c.ID}}" class="bg-white dark:bg-gray-800 rounded drop-shadow-sm py-2 px-4 relative w-full">+<div id="comment-{{$c.Id}}" class="bg-white dark:bg-gray-800 rounded drop-shadow-sm py-2 px-4 relative w-full">-<a class="text-gray-500 dark:text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" href="#comment-{{.ID}}">{{ template "repo/fragments/time" $c.Created }}</a>+<a class="text-gray-500 dark:text-gray-400 hover:text-gray-500 dark:hover:text-gray-300" href="#comment-{{.Id}}">{{ template "repo/fragments/time" $c.Created }}</a>
+1
-1
appview/pulls/opengraph.go
+1
-1
appview/pulls/opengraph.go
···
+24
-23
appview/pulls/pulls.go
+24
-23
appview/pulls/pulls.go
············-s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d#comment-%d", ownerSlashRepo, pull.PullId, commentId))+s.pages.HxLocation(w, fmt.Sprintf("/%s/pulls/%d#comment-%d", ownerSlashRepo, pull.PullId, comment.Id))