summaryrefslogtreecommitdiff
path: root/internal/entry/entry.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-10-31 23:20:13 +0200
committerPaul Buetow <paul@buetow.org>2024-10-31 23:20:13 +0200
commit9581ebeb48c48425f2f8f5160455f26dcdc0c550 (patch)
tree997d409962e23cee59d2fbb0a4bc577472dafb20 /internal/entry/entry.go
parentc2b3c4f6e4d40c49d55deb5b696bb3cb8cdde531 (diff)
som stuff
Diffstat (limited to 'internal/entry/entry.go')
-rw-r--r--internal/entry/entry.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/entry/entry.go b/internal/entry/entry.go
index 040b509..3fd2623 100644
--- a/internal/entry/entry.go
+++ b/internal/entry/entry.go
@@ -156,7 +156,7 @@ func (en Entry) HasTag(tag string) bool {
// Valid tags are: share:foo[,...]
// whereas foo can be a supported plutform such as linkedin, mastodon, etc.
// foo can also be prefixed with - to exclude it. See unit tests for examples.
-func (en Entry) ExcludedByTags(args config.Args, platform string) (bool, error) {
+func (en Entry) PlatformExcluded(args config.Args, platform string) (bool, error) {
s, err := newShareTags(args, en.Path)
return slices.Contains(s.excludes, strings.ToLower(platform)) ||
!slices.Contains(s.includes, strings.ToLower(platform)), err