Twitter onebox should support "status" and "statuses"
-
Continuing the discussion from The bad ideas thread:
Twitter oneboxing needs a quick look at:
https://twitter.com/matthancockmp/statuses/476719369519923200
https://twitter.com/matthancockmp/status/476719369519923200
Difference between those two is the
statuses
vsstatus
part of the URL.Both URL's appear to link to (basically) the same output:
[pjh@lenovo tmp]$ diff -u status{,es}.html --- status.html 2014-06-12 09:28:10.727907385 +0100 +++ statuses.html 2014-06-12 09:27:58.629822994 +0100 @@ -221,7 +221,7 @@ </div> <input type="hidden" name="scribe_log"> -<input type="hidden" name="redirect_after_login" value="/matthancockmp/status/476719369519923200"> +<input type="hidden" name="redirect_after_login" value="/matthancockmp/statuses/476719369519923200"> <input type="hidden" value="f43fd17553f305b3a8600067bc57ce801eaa7570" name="authenticity_token"/> </fieldset> @@ -5674,7 +5674,7 @@ <div id="spoonbill-outer"></div> </body> </html> - <input type="hidden" id="init-data" class="json-data" value="{"profileHoversEnabled":false,"noNewDedup":false,"permalinkOverlayEnabled":false,"baseFoucClass":"swift-loading","bodyFoucClassNames":"swift-loading","macawSwift":true,"assetsBasePath":"https:\/\/abs.twimg.com\/a\/1402475901\/","assetVersionKey":"b178f4","environment":"production","formAuthenticityToken":"f43fd17553f305b3a8600067bc57ce801eaa7570","loggedIn":false,"screenName":null,"fullName":null,"userId":null,"scribeBufferSize":3,"pageName":"permalink","sectionName":"permalink","scribeParameters":{},"internalReferer":null,"geoEnabled":false,"typeaheadData":{"accounts":{"localQueriesEnabled":false,"remoteQueriesEnabled":false,"enabled":false,"limit":6},"trendLocations":{"enabled":false},"savedSearches":{"enabled":false,"items":[]},"dmAccounts":{"enabled":false,"localQueriesEnabled":false,"onlyDMable":true,"remoteQueriesEnabled":false},"mediaTagAccounts":{"enabled":false,"localQueriesEnabled":false,"onlyShowUsersWithCanMediaTag":false,"remoteQueriesEnabled":false,"currentUserId":-1},"selectedUsers":{"enabled":false},"prefillUsers":{"enabled":false},"topics":{"enabled":false,"localQueriesEnabled":false,"prefetchLimit":500,"remoteQueriesEnabled":false,"limit":4},"concierge":{"enabled":false,"localQueriesEnabled":true,"remoteQueriesEnabled":false,"prefetchLimit":500,"limit":3},"recentSearches":{"enabled":false},"contextHelpers":{"enabled":false,"page_name":"permalink","section_name":"permalink","screen_name":"matthancockmp"},"hashtags":{"enabled":false,"localQueriesEnabled":false,"prefetchLimit":500,"remoteQueriesEnabled":false},"showSearchAccountSocialContext":false,"showTypeaheadTopicSocialContext":false,"showDebugInfo":false,"useThrottle":true,"accountsOnTop":false,"remoteDebounceInterval":300,"remoteThrottleInterval":300,"reverseBoldingEnabled":false,"tweetContextEnabled":false,"fullNameMatchingInCompose":true,"topicsWithFiltersEnabled":false},"pushStatePageLimit":500000,"routes":{"profile":"\/"},"pushState":true,"viewContainer":"#page-container","asyncSocialProof":true,"dragAndDropPhotoUpload":true,"href":"\/matthancockmp\/status\/476719369519923200","searchPathWithQuery":"\/search?q=query&src=typd","timelineCardsGallery":true,"mediaGrid":true,"deciders":{"pushState":true,"disable_profile_popup":false,"hqImageUploads":false,"mqImageUploads":false,"largeHeaderImageUpload":true,"dynamicLoadMediaForward":true,"scribeActionQueue":false,"scribeReducedActionQueue":true,"custom_timeline_curation":false,"async_upload":true,"multi_compose":true},"experiments":{"reply140":false,"inTweetWebCountsExperiment":false},"permalinkCardsGallery":false,"toasts_dm":false,"toasts_spoonbill":false,"toasts_timeline":false,"toasts_dm_poll_scale":60,"uploadDomain":"upload.twitter.com","lifelineAlertEnabled":false,"freezeDashboard":false,"swift_dm_create":false,"swift_dm_delete":false,"passwordResetAdvancedLoginForm":true,"enableActivity":true,"tweetId":"476719369519923200","endpoint":"\/i\/matthancockmp\/conversation\/476719369519923200","permalinkCardsGallery":true,"showRelatedTweets":false,"showHighlinePermalink":false,"initialState":{"title":"Twitter \/ matthancockmp: Does anyone have details of ...","section":null,"module":"app\/pages\/permalink","cache_ttl":300,"body_class_names":"highline three-col logged-out user-style-matthancockmp","doc_class_names":"route-permalink","route_name":"permalink","page_container_class_names":"AppContent wrapper wrapper-permalink white","ttft_navigation":false}}"> + <input type="hidden" id="init-data" class="json-data" value="{"profileHoversEnabled":false,"noNewDedup":false,"permalinkOverlayEnabled":false,"baseFoucClass":"swift-loading","bodyFoucClassNames":"swift-loading","macawSwift":true,"assetsBasePath":"https:\/\/abs.twimg.com\/a\/1402475901\/","assetVersionKey":"b178f4","environment":"production","formAuthenticityToken":"f43fd17553f305b3a8600067bc57ce801eaa7570","loggedIn":false,"screenName":null,"fullName":null,"userId":null,"scribeBufferSize":3,"pageName":"permalink","sectionName":"permalink","scribeParameters":{},"internalReferer":null,"geoEnabled":false,"typeaheadData":{"accounts":{"localQueriesEnabled":false,"remoteQueriesEnabled":false,"enabled":false,"limit":6},"trendLocations":{"enabled":false},"savedSearches":{"enabled":false,"items":[]},"dmAccounts":{"enabled":false,"localQueriesEnabled":false,"onlyDMable":true,"remoteQueriesEnabled":false},"mediaTagAccounts":{"enabled":false,"localQueriesEnabled":false,"onlyShowUsersWithCanMediaTag":false,"remoteQueriesEnabled":false,"currentUserId":-1},"selectedUsers":{"enabled":false},"prefillUsers":{"enabled":false},"topics":{"enabled":false,"localQueriesEnabled":false,"prefetchLimit":500,"remoteQueriesEnabled":false,"limit":4},"concierge":{"enabled":false,"localQueriesEnabled":true,"remoteQueriesEnabled":false,"prefetchLimit":500,"limit":3},"recentSearches":{"enabled":false},"contextHelpers":{"enabled":false,"page_name":"permalink","section_name":"permalink","screen_name":"matthancockmp"},"hashtags":{"enabled":false,"localQueriesEnabled":false,"prefetchLimit":500,"remoteQueriesEnabled":false},"showSearchAccountSocialContext":false,"showTypeaheadTopicSocialContext":false,"showDebugInfo":false,"useThrottle":true,"accountsOnTop":false,"remoteDebounceInterval":300,"remoteThrottleInterval":300,"reverseBoldingEnabled":false,"tweetContextEnabled":false,"fullNameMatchingInCompose":true,"topicsWithFiltersEnabled":false},"pushStatePageLimit":500000,"routes":{"profile":"\/"},"pushState":true,"viewContainer":"#page-container","asyncSocialProof":true,"dragAndDropPhotoUpload":true,"href":"\/matthancockmp\/statuses\/476719369519923200","searchPathWithQuery":"\/search?q=query&src=typd","timelineCardsGallery":true,"mediaGrid":true,"deciders":{"pushState":true,"disable_profile_popup":false,"hqImageUploads":false,"mqImageUploads":false,"largeHeaderImageUpload":true,"dynamicLoadMediaForward":true,"scribeActionQueue":false,"scribeReducedActionQueue":true,"custom_timeline_curation":false,"async_upload":true,"multi_compose":true},"experiments":{"reply140":false,"inTweetWebCountsExperiment":false},"permalinkCardsGallery":false,"toasts_dm":false,"toasts_spoonbill":false,"toasts_timeline":false,"toasts_dm_poll_scale":60,"uploadDomain":"upload.twitter.com","lifelineAlertEnabled":false,"freezeDashboard":false,"swift_dm_create":false,"swift_dm_delete":false,"passwordResetAdvancedLoginForm":true,"enableActivity":true,"tweetId":"476719369519923200","endpoint":"\/i\/matthancockmp\/conversation\/476719369519923200","permalinkCardsGallery":true,"showRelatedTweets":false,"showHighlinePermalink":false,"initialState":{"title":"Twitter \/ matthancockmp: Does anyone have details of ...","section":null,"module":"app\/pages\/permalink","cache_ttl":300,"body_class_names":"highline three-col logged-out user-style-matthancockmp","doc_class_names":"route-permalink","route_name":"permalink","page_container_class_names":"AppContent wrapper wrapper-permalink white","ttft_navigation":false}}"> [pjh@lenovo tmp]$
-
I believe "statuses" is something different.
For an individual Twitter message, "status" is the correct URL, and it's the one linked via share and the timestamp on each tweet.
Where are you seeing "statuses" URL generated?
I am not sure why they have a singular and plural version of this URL, but I suspect there is some difference. Oh well, we'll ask Twitter:
-
Where are you seeing "statuses" URL generated?
No idea. They were listed on the blogpost quoted in the post this topic spawned from.
-
I see, it looks like the embeds are generating that URL, so we should probably support it. @eviltrout can you modify the Twitter oneboxer to support either
status
orstatuses
in the URL?
-
Another person reporting this bug:
http://what.thedailywtf.com/t/the-bad-ideas-thread/254/273?u=pjh
-
I've just pushed a fix out for this to our git repo:
-