summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Kangas <gabek@real-ity.com>2022-01-04 00:18:27 -0800
committerGabe Kangas <gabek@real-ity.com>2022-01-06 23:02:48 -0800
commitc29000d27d75a5a56d4fcb2ae5d9ade7b18ff470 (patch)
tree3fc69d20afe3284432f61389eb752326cf26b1df
parentb29b47626616661daa560f4ecb213ce5ee4fe9ee (diff)
Remove todos
-rw-r--r--activitypub/outbox/outbox.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/activitypub/outbox/outbox.go b/activitypub/outbox/outbox.go
index af34ed8ca..61fed7f0f 100644
--- a/activitypub/outbox/outbox.go
+++ b/activitypub/outbox/outbox.go
@@ -41,8 +41,6 @@ func SendLive() error {
tagWithoutSpecialCharacters := reg.ReplaceAllString(tagString, "")
hashtag := apmodels.MakeHashtag(tagWithoutSpecialCharacters)
tagProp.AppendTootHashtag(hashtag)
-
- // TODO: Do we want to display tags or just assign them?
tagString := getHashtagLinkHTMLFromTagString(tagWithoutSpecialCharacters)
tagStrings = append(tagStrings, tagString)
}
@@ -50,11 +48,10 @@ func SendLive() error {
// Manually add Owncast hashtag if it doesn't already exist so it shows up
// in Owncast search results.
// We can remove this down the road, but it'll be nice for now.
- // TODO: Re-enable?
- // if _, exists := utils.FindInSlice(tagStrings, "owncast"); !exists {
- // hashtag := apmodels.MakeHashtag("owncast")
- // tagProp.AppendTootHashtag(hashtag)
- // }
+ if _, exists := utils.FindInSlice(tagStrings, "owncast"); !exists {
+ hashtag := apmodels.MakeHashtag("owncast")
+ tagProp.AppendTootHashtag(hashtag)
+ }
tagsString := strings.Join(tagStrings, " ")