Methods
fixLocalLinks(comment) → {string}
#
Watchlist api returns parsed comments, but the links in those comments reflect the site environment, and can be local. Ensure that they work as foreign links by adding the site.
Parameters:
Name | Type | Description |
---|---|---|
comment |
string | The original comment with local links |
Returns:
Updated comment with foreign links
- Type
- string