Skip to content

Add embeddable posts

minibikini requested to merge feature/embeddable-posts into develop
  • Based on static-fe and the mastodon embed widget.
  • Widget path is /embed/:status_id
  • It doesn't support polls yet.
  • There are no icons for replies, announces and likes. I think ideally it should reuse icons from pleroma-fe but not sure how because FE's fontello file has a dynamic part in filename.
  • There is no "Follow/Unfollow" button because we can't authenticate a user without oauth (or can we)?
  • Closes #1288 (closed)

Examples:

Screen_Shot_2020-03-20_at_9.30.23_PM

Screen_Shot_2020-03-20_at_9.30.38_PM

Example widget HTML code:

<iframe src="http://localhost:4000/embed/9t6VGYb0Ehg14lvGee" class="pleroma-embed" style="max-width: 100%; border: 0"
    width="400" allowfullscreen="allowfullscreen"></iframe>
<script src="http://localhost:4000/embed.js" async="async"></script>
Edited by minibikini

Merge request reports