-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add (temporary) federation support of status link #29
Comments
I thought this worked! I will look into fixing it. |
Is it possible to add a fake inbox to avoid errors on admin panels? If someone make actions to a feed, errors will show up:
|
Great idea too. I'll add an inbox that allows posts but trashes the contents. |
It seems that they just fetch the status link with a specific header: >>> import requests
>>> headers={'Accept': 'application/activity+json'}
>>> requests.get('https://mastodon.social/@Gargron/102420674987390349', headers=headers).json()
{'@context': ['https://www.w3.org/ns/activitystreams', {'ostatus': 'http://ostatus.org#', 'atomUri': 'ostatus:atomUri', 'inReplyToAtomUri': 'ostatus:inReplyToAtomUri', 'conversation': 'ostatus:conversation', 'sensitive': 'as:sensitive', 'Hashtag': 'as:Hashtag', 'toot': 'http://joinmastodon.org/ns#', 'Emoji': 'toot:Emoji', 'focalPoint': {'@container': '@list', '@id': 'toot:focalPoint'}, 'blurhash': 'toot:blurhash'}], 'id': 'https://msn.debula.ml/users/Gargron/statuses/102420674987390349', 'type': 'Note', 'summary': None, 'inReplyTo': None, 'published': '2019-07-11T03:24:35Z', 'url': 'https://msn.debula.ml/@Gargron/102420674987390349', 'attributedTo': 'https://msn.debula.ml/users/Gargron', 'to': ['https://www.w3.org/ns/activitystreams#Public'], 'cc': ['https://msn.debula.ml/users/Gargron/followers'], 'sensitive': False, 'atomUri': 'https://msn.debula.ml/users/Gargron/statuses/102420674987390349', 'inReplyToAtomUri': None, 'conversation': 'tag:mastodon.social,2019-07-11:objectId=113560613:objectType=Conversation', 'content': '<p>Just saw a picture of Casey (cat)</p>', 'contentMap': {'en': '<p>Just saw a picture of Casey (cat)</p>'}, 'attachment': [], 'tag': [], 'replies': {'id': 'https://msn.debula.ml/users/Gargron/statuses/102420674987390349/replies', 'type': 'Collection', 'first': {'type': 'CollectionPage', 'partOf': 'https://msn.debula.ml/users/Gargron/statuses/102420674987390349/replies', 'items': []}}} Hope this issue can be fixed eventually. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
Sometimes you boost an interesting RSS post and hope that your followers can see it...
I know that this feature will consume more resources on server side, so federation support of each link can be temporary. For example, you can set federation support of each link available for 12 hours.
BTW, I don't know how Mastodon fetch a new status from a new server. Maybe it just use WebFinger. and the query string changes to status link ...
The text was updated successfully, but these errors were encountered: