Signed-off-by: Seongmin Lee git@boltless.me
ERROR
appview/notify/db/db.go
ERROR
appview/notify/db/db.go
Failed to calculate interdiff for this file.
ERROR
appview/notify/merged_notifier.go
ERROR
appview/notify/merged_notifier.go
Failed to calculate interdiff for this file.
ERROR
appview/notify/notifier.go
ERROR
appview/notify/notifier.go
Failed to calculate interdiff for this file.
ERROR
appview/notify/posthog/notifier.go
ERROR
appview/notify/posthog/notifier.go
Failed to calculate interdiff for this file.
ERROR
appview/pages/markup/extension/atlink.go
ERROR
appview/pages/markup/extension/atlink.go
Failed to calculate interdiff for this file.
REVERTED
appview/pages/markup/markdown.go
REVERTED
appview/pages/markup/markdown.go
···
302
302
return path.Join(rctx.CurrentDir, dst)
303
303
}
304
304
305
-
// FindUserMentions returns Set of user handles from given markup soruce.
306
-
// It doesn't guarntee unique DIDs
307
-
func FindUserMentions(source string) []string {
308
-
var (
309
-
mentions []string
310
-
mentionsSet = make(map[string]struct{})
311
-
md = NewMarkdown()
312
-
sourceBytes = []byte(source)
313
-
root = md.Parser().Parse(text.NewReader(sourceBytes))
314
-
)
315
-
ast.Walk(root, func(n ast.Node, entering bool) (ast.WalkStatus, error) {
316
-
if entering && n.Kind() == textension.KindAt {
317
-
handle := n.(*textension.AtNode).Handle
318
-
mentionsSet[handle] = struct{}{}
319
-
return ast.WalkSkipChildren, nil
320
-
}
321
-
return ast.WalkContinue, nil
322
-
})
323
-
for handle := range mentionsSet {
324
-
mentions = append(mentions, handle)
325
-
}
326
-
return mentions
327
-
}
328
-
329
305
func isAbsoluteUrl(link string) bool {
330
306
parsed, err := url.Parse(link)
331
307
if err != nil {
ERROR
appview/pulls/pulls.go
ERROR
appview/pulls/pulls.go
Failed to calculate interdiff for this file.