Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
J
jvt.me
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 323
    • Issues 323
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Jamie Tanna
  • jvt.me
  • Merge Requests
  • !658

Merged
Opened Jan 14, 2020 by Jamie Tanna@jamietannaMaintainer

Replace Twitter username URLs with @s for better syndication

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Up until now, syndicating notes/replies to Twitter has required writing @-usernames for Twitter usernames, which isn't very friendly for folks viewing the site / following an h-feed.

We can improve this by rewriting Twitter profile URLs with @{username} which when converted to plaintext by Brid.gy should publish it with an @-mention.

However, because we don't want to rewrite full Twitter URLs, we need to be a bit more careful with the regex. We want to catch only URLs that end with a couple of special characters as it is most likely that these mentions will have these characters after them.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: jamietanna/jvt.me!658
Source branch: feature/twitter-username-bridgy