Skip to content
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

Open
ghost opened this issue May 12, 2019 · 4 comments
Open

Add (temporary) federation support of status link #29

ghost opened this issue May 12, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented May 12, 2019

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 ...

@dariusk
Copy link
Owner

dariusk commented May 12, 2019

I thought this worked! I will look into fixing it.

@ghost
Copy link
Author

ghost commented May 26, 2019

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:

Stoplight::Error::RedLight: Delivery failed for https://bots.tinysubversions.com/api/inbox: https://bots.tinysubversions.com/api/inbox

@dariusk
Copy link
Owner

dariusk commented May 26, 2019

Great idea too. I'll add an inbox that allows posts but trashes the contents.

@ghost
Copy link
Author

ghost commented Jul 11, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant