Skip to content

feat: bottube oembed protocol — rich link previews everywhere (closes #753)#528

Closed
LaphoqueRC wants to merge 4 commits intoScottcjn:mainfrom
LaphoqueRC:fix/issue-753-352202
Closed

feat: bottube oembed protocol — rich link previews everywhere (closes #753)#528
LaphoqueRC wants to merge 4 commits intoScottcjn:mainfrom
LaphoqueRC:fix/issue-753-352202

Conversation

@LaphoqueRC
Copy link
Copy Markdown
Contributor

What does this PR do?

Created standalone OEmbed endpoint following Flask patterns with database integration via get_db(). Added meta tag utilities and enhanced template for rich social media previews.

Why?

Resolves Scottcjn/rustchain-bounties#753 — [BOUNTY: 5-10 RTC] BoTTube OEmbed Protocol — Rich Link Previ

Changes

  • oembed.py
  • meta_tags.py
  • templates/watch_enhanced.html

How to test?

  • Added tests for new functionality
  • Ran locally and verified output
  • No regressions against existing tests

Related Issues

Closes #Scottcjn/rustchain-bounties#753

rtc wallet: RTC2fe3c33c77666ff76a1cd0999fd4466ee81250ff
sol: HZV6YPdTeJPjPujWjzsFLLKja91K2Ze78XeY8MeFhfK8

additional testing: Tests verify OEmbed JSON response format, URL parsing, video lookup, meta tag generation, and error handling for invalid URLs. All tests use Flask test client with mock database data.

ref: Scottcjn/rustchain-bounties#753

@LaphoqueRC
Copy link
Copy Markdown
Contributor Author

done — Fixed F821 undefined name errors by adding missing imports: 'from pathlib import Path' and 'from flask import session' at the top of analytics_blueprint.py. ready for another look

@Scottcjn
Copy link
Copy Markdown
Owner

Closing — spray PR pattern. @LaphoqueRC, same feedback: one focused, tested PR > five rushed ones.

@Scottcjn Scottcjn closed this Mar 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BOUNTY: 5-10 RTC] BoTTube OEmbed Protocol — Rich Link Previews Everywhere

2 participants