Closed Bug 1226559 Opened 10 years ago Closed 10 years ago

Twitter pings are broken

Categories

(Chat Core :: Twitter, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Instantbird 45

People

(Reporter: aleth, Assigned: aleth)

References

Details

(Keywords: regression)

Attachments

(1 file)

Apparently twitter pings are broken.
Blocks: 1218127
Keywords: regression
Attachment #8690033 - Flags: review?(clokep)
Assignee: nobody → aleth
Status: NEW → ASSIGNED
Comment on attachment 8690033 [details] [diff] [review] Fix twitter @mention pings Review of attachment 8690033 [details] [diff] [review]: ----------------------------------------------------------------- Any idea what broke this? (Perhaps rendering mentions in a bubble?) ::: chat/protocols/twitter/twitter.js @@ +353,5 @@ > flags.delayed = true; > + if (aTweet.entities && aTweet.entities.user_mentions && > + Array.isArray(aTweet.entities.user_mentions) && > + aTweet.entities.user_mentions.map(mention => mention.screen_name) > + .some(name => name == this.nick)) This looks good. I think I'd combine the .map and .some into a single call, but isn't necessary for r+: .some(mention => mention.screen_name == this.nick)
Attachment #8690033 - Flags: review?(clokep) → review+
(In reply to Patrick Cloke [:clokep] from comment #2) > Comment on attachment 8690033 [details] [diff] [review] > Fix twitter @mention pings > > Review of attachment 8690033 [details] [diff] [review]: > ----------------------------------------------------------------- > > Any idea what broke this? (Perhaps rendering mentions in a bubble?) Yes, exactly (there's a <span> after that's inserted). .map removed on checkin
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Instantbird 45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: