Suggestions for a "View on fediverse" button in a HTML page

Hi all, I developed a small blogging platform which, among blogging 
features, publish posts on the fediverse as Notes. I wonder add a "View 
on fediverse" button in the post page. However, the user which press 
this button should be able to add coments, like and share the Note 
object. Let me enumerate two possible use cases:

1) the user is logged in (via web interface) to her mastodon account on 
some server. In this case the "View on the fadiverse" button open the 
server web page showing the Note object, but with the user already 
logged in;

2) the user is not logged in to any activity pub server, but her holds 
an account on some such a server which provides a web interface. In this 
case, the user should be asked for server IRI and her account 
credentials. If authentication succeeds, the rest works as in 1).

Sorry for the confused request, any suggesiton is welcome.

CL

Received on Monday, 22 April 2024 11:01:19 UTC