Skip to content

Commit

Permalink
Merge pull request #608 from darkpixlz/master
Browse files Browse the repository at this point in the history
Fix "Only on X" tag
  • Loading branch information
dimdenGD authored Nov 23, 2023
2 parents 1adda9e + ba5bc84 commit ed5e3a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,9 @@ const API = {
if(desc.endsWith(' posts')) {//why they changed to lower-case
desc = desc.replace(` posts`, ` ${LOC.tweets.message}`)
}
if(desc.find('Only on X')) {
desc = desc.replace(`Only on X`, `Only on ${LOC.twitter.message}`)
}
data.push({trend:{
name: trend.item.content.trend.name,
meta_description: desc,
Expand Down

0 comments on commit ed5e3a8

Please sign in to comment.