mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 08:54:19 +08:00
|
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Publish Assets / publish-assets (push) Waiting to run
Tests / core backend (push) Waiting to run
Tests / plugins backend (push) Waiting to run
Tests / core frontend (Chrome) (push) Waiting to run
Tests / plugins frontend (push) Waiting to run
Tests / themes frontend (push) Waiting to run
Tests / core system (push) Waiting to run
Tests / plugins system (push) Waiting to run
Tests / themes system (push) Waiting to run
Tests / core frontend (Firefox ESR) (push) Waiting to run
Tests / core frontend (Firefox Evergreen) (push) Waiting to run
Tests / chat system (push) Waiting to run
Tests / merge (push) Blocked by required conditions
Lazily loaded videos currently won't be picked up by search engines as they do not contain an iframe or VideoObject. This commit uses a new API `build_plugin_html "server:topic-show-crawler-post-end"` to insert populated [ld+json](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data#supported-formats) into the end of each post which has a video. Results: - https://search.google.com/test/rich-results/result?id=vegb8Qkz7HThsMbFaeN2AQ - https://search.google.com/test/rich-results/result?id=asumX41RneM2tMstchv45A - (vimeo) https://search.google.com/test/rich-results/result?id=EZWOMJCkDqEQIHfOLkSkcw Note: There were originally two ways around this - add each VideoObject to the `post.cook` all the time agnostic of crawler view - or add them to the `<head>` with appropriate metadata, needing to duplicate all post meta data within a `isPartOf` attribute. I chose to create a new api so that we can satisfy both "only add the meta data in crawler view" and prevent post metadata duplication. |
||
|---|---|---|
| .. | ||
| allowlisted_generic_onebox.rb | ||
| amazon_onebox.rb | ||
| animated_image_onebox.rb | ||
| asciinema_onebox.rb | ||
| audio_com_onebox.rb | ||
| audio_onebox.rb | ||
| audioboom_onebox.rb | ||
| band_camp_onebox.rb | ||
| cloud_app_onebox.rb | ||
| coub_onebox.rb | ||
| discourse_topic_onebox.rb | ||
| facebook_media_onebox.rb | ||
| five_hundred_px_onebox.rb | ||
| flickr_onebox.rb | ||
| flickr_shortened_onebox.rb | ||
| gfycat_onebox.rb | ||
| github_actions_onebox.rb | ||
| github_blob_onebox.rb | ||
| github_commit_onebox.rb | ||
| github_folder_onebox.rb | ||
| github_gist_onebox.rb | ||
| github_issue_onebox.rb | ||
| github_pull_request_onebox.rb | ||
| github_repo_onebox.rb | ||
| gitlab_blob_onebox.rb | ||
| google_calendar_onebox.rb | ||
| google_docs_onebox.rb | ||
| google_drive_onebox.rb | ||
| google_maps_onebox.rb | ||
| google_photos_onebox.rb | ||
| google_play_app_onebox.rb | ||
| hackernews_onebox.rb | ||
| html.rb | ||
| image_onebox.rb | ||
| imgur_onebox.rb | ||
| instagram_onebox.rb | ||
| json.rb | ||
| kaltura_onebox.rb | ||
| loom_onebox.rb | ||
| mixcloud_onebox.rb | ||
| motoko_onebox.rb | ||
| opengraph_image.rb | ||
| pastebin_onebox.rb | ||
| pdf_onebox.rb | ||
| pubmed_onebox.rb | ||
| reddit_media_onebox.rb | ||
| replit_onebox.rb | ||
| simplecast_onebox.rb | ||
| sketch_fab_onebox.rb | ||
| slides_onebox.rb | ||
| sound_cloud_onebox.rb | ||
| spotify_onebox.rb | ||
| stack_exchange_onebox.rb | ||
| standard_embed.rb | ||
| steam_store_onebox.rb | ||
| threads_status_onebox.rb | ||
| tiktok_onebox.rb | ||
| trello_onebox.rb | ||
| twitch_clips_onebox.rb | ||
| twitch_stream_onebox.rb | ||
| twitch_video_onebox.rb | ||
| twitter_status_onebox.rb | ||
| typeform_onebox.rb | ||
| video_onebox.rb | ||
| vimeo_onebox.rb | ||
| wikimedia_onebox.rb | ||
| wikipedia_onebox.rb | ||
| wistia_onebox.rb | ||
| xkcd_onebox.rb | ||
| youku_onebox.rb | ||
| youtube_onebox.rb | ||