Skip to content

Add Linktree to social module (#2399)#3072

Merged
TheTechromancer merged 1 commit intoblacklanternsecurity:devfrom
ChrisJr404:feat/social-linktree-2399
May 4, 2026
Merged

Add Linktree to social module (#2399)#3072
TheTechromancer merged 1 commit intoblacklanternsecurity:devfrom
ChrisJr404:feat/social-linktree-2399

Conversation

@ChrisJr404
Copy link
Copy Markdown

Summary

Closes #2399 ("Add Social: Linktree", filed by @TheTechromancer).

Adds a Linktree entry to bbot/modules/social.py's social_media_platforms table so the social module emits a SOCIAL event for linktr.ee/<username> URLs alongside the existing platforms.

\"linktree\": (r\"linktr\\.ee/([a-zA-Z0-9._]{3,30})\", False),

The pattern follows Linktree's own username constraints (3–30 chars of letters/digits/_/.).

Test

test_module_social.TestSocial:

  • adds <a href=\"https://linktr.ee/blacklanternsecurity\"/> to the response fixture,
  • bumps the SOCIAL event count from 4 → 5,
  • asserts platform/profile/url for the new Linktree event.
$ pytest bbot/test/test_step_2/module_tests/test_module_social.py -v
TestSocial::test_module_run PASSED
1 passed in 10.45s

Adds linktr.ee profile detection to the existing social module, alongside
LinkedIn / GitHub / Discord / etc. The username pattern is the
3-30 character window of [a-zA-Z0-9._] that Linktree uses on its
sign-up page.

Extends test_module_social.TestSocial with a Linktree fixture and
asserts both the canonical url and profile_name fields on the emitted
SOCIAL event.

Closes blacklanternsecurity#2399
@TheTechromancer TheTechromancer self-requested a review May 4, 2026 15:21
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91%. Comparing base (5be4993) to head (210b95e).

Additional details and impacted files
@@          Coverage Diff          @@
##             dev   #3072   +/-   ##
=====================================
- Coverage     91%     91%   -0%     
=====================================
  Files        437     437           
  Lines      37509   37510    +1     
=====================================
- Hits       33925   33923    -2     
- Misses      3584    3587    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TheTechromancer TheTechromancer merged commit 2c99274 into blacklanternsecurity:dev May 4, 2026
13 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants