Documentation ¶
Index ¶
- func AccountIsOlderThan(c *automod.AccountContext, age time.Duration) bool
- func AccountIsYoungerThan(c *automod.AccountContext, age time.Duration) bool
- func DedupeStrings(in []string) []string
- func ExtractBlobCIDsProfile(profile *appbsky.ActorProfile) []string
- func ExtractHashtagsPost(post *appbsky.FeedPost) []string
- func ExtractPostBlobCIDsPost(post *appbsky.FeedPost) []string
- func ExtractTextTokensPost(post *appbsky.FeedPost) []string
- func ExtractTextTokensProfile(profile *appbsky.ActorProfile) []string
- func ExtractTextURLs(raw string) []string
- func ExtractTextURLsProfile(profile *appbsky.ActorProfile) []string
- func HashOfString(s string) string
- func IsSelfThread(c *automod.RecordContext, post *appbsky.FeedPost) bool
- func NormalizeHashtag(raw string) string
- func ParentOrRootIsFollower(c *automod.RecordContext, post *appbsky.FeedPost) bool
- func PostMentionsAnyDid(post *appbsky.FeedPost, dids []string) bool
- func PostMentionsDid(post *appbsky.FeedPost, did string) bool
- func PostParentOrRootIsAnyDid(post *appbsky.FeedPost, dids []string) bool
- func PostParentOrRootIsDid(post *appbsky.FeedPost, did string) bool
- type PostFacet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountIsOlderThan ¶
func AccountIsOlderThan(c *automod.AccountContext, age time.Duration) bool
checks if account was *not* created recently, based on either public or private account metadata. if metadata isn't available at all, or seems bogus, returns 'false'
func AccountIsYoungerThan ¶
func AccountIsYoungerThan(c *automod.AccountContext, age time.Duration) bool
checks if account was created recently, based on either public or private account metadata. if metadata isn't available at all, or seems bogus, returns 'false'
func DedupeStrings ¶
func ExtractBlobCIDsProfile ¶
func ExtractBlobCIDsProfile(profile *appbsky.ActorProfile) []string
func ExtractHashtagsPost ¶
func ExtractPostBlobCIDsPost ¶
func ExtractTextTokensPost ¶
func ExtractTextTokensProfile ¶
func ExtractTextTokensProfile(profile *appbsky.ActorProfile) []string
func ExtractTextURLs ¶
func ExtractTextURLsProfile ¶
func ExtractTextURLsProfile(profile *appbsky.ActorProfile) []string
func HashOfString ¶
returns a fast, compact hash of a string
current implementation uses murmur3, default seed, and hex encoding
func IsSelfThread ¶
func IsSelfThread(c *automod.RecordContext, post *appbsky.FeedPost) bool
checks if the post event is a reply post for which the author is replying to themselves, or author is the root author (OP)
func NormalizeHashtag ¶
func ParentOrRootIsFollower ¶
func ParentOrRootIsFollower(c *automod.RecordContext, post *appbsky.FeedPost) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.