Closed
Bug 1226559
Opened 10 years ago
Closed 10 years ago
Twitter pings are broken
Categories
(Chat Core :: Twitter, defect)
Chat Core
Twitter
Tracking
(Not tracked)
RESOLVED
FIXED
Instantbird 45
People
(Reporter: aleth, Assigned: aleth)
References
Details
(Keywords: regression)
Attachments
(1 file)
|
1.28 KB,
patch
|
clokep
:
review+
|
Details | Diff | Splinter Review |
Apparently twitter pings are broken.
| Assignee | ||
Updated•10 years ago
|
Blocks: 1218127
Keywords: regression
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8690033 -
Flags: review?(clokep)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → aleth
Status: NEW → ASSIGNED
Comment 2•10 years ago
|
||
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+
| Assignee | ||
Comment 3•10 years ago
|
||
https://hg.mozilla.org/comm-central/rev/a69b34c19f9a63a1e882186dc20169ee2164c1b2
Bug 1226559 - Fix twitter @mention pings. r=clokep
| Assignee | ||
Comment 4•10 years ago
|
||
(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
| Assignee | ||
Updated•10 years ago
|
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.
Description
•