diff options
| author | Paul Buetow <paul@buetow.org> | 2024-11-06 22:03:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-11-06 22:03:32 +0200 |
| commit | ed387f37ee004a18edfdabfd349c1f08e0b97f7d (patch) | |
| tree | ab100d0f722a898196c973c4c72088452579fe14 /internal/entry | |
| parent | 2d652249ca36219853b34d9f55101ed3cbd109a1 (diff) | |
inline tags work
Diffstat (limited to 'internal/entry')
| -rw-r--r-- | internal/entry/entry.go | 2 | ||||
| -rw-r--r-- | internal/entry/sharetags.go | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/internal/entry/entry.go b/internal/entry/entry.go index f97cfa8..15793a2 100644 --- a/internal/entry/entry.go +++ b/internal/entry/entry.go @@ -113,7 +113,7 @@ func (en Entry) ContentWithLimit(sizeLimit int) (string, []string, error) { if err != nil { return "", urls, err } - // TODO: Handle inline tags, use the extractInlineTags method of entry + _, content, _ = extractInlineTags(content) if len(content) > sizeLimit { err := fmt.Errorf("%w (%d > %d): %v", ErrSizeLimitExceeded, len(content), sizeLimit, en) if err2 := prompt.Acknowledge("You need to shorten the content as "+err.Error(), content); err2 != nil { diff --git a/internal/entry/sharetags.go b/internal/entry/sharetags.go index 4087d6a..c0b855a 100644 --- a/internal/entry/sharetags.go +++ b/internal/entry/sharetags.go @@ -12,7 +12,6 @@ type shareTags struct { excludes []string // The platforms to exclude } -// TODO: Inline tag support, like in quicklogger. func newShareTags(args config.Args, tags map[string]struct{}) (shareTags, error) { var s shareTags |
