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

Do not misattribute inlined boosts if attributedTo isn't present #10967

Merged

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #10950

As of 6a5307a, we accept boosts of inlined toots provided that they can be attributed to the actor boosting it. However, we assume that if no attributedTo field is present, then the object is to be attributed to the actor boosting it.

I guess that assumption might not be correct, although cases where that assumption would not be correct are cases where we cannot attribute the toot at all.

@ClearlyClaire
Copy link
Contributor Author

Note that I'm not 100% sure it is what caused the mentioned issue, as the example mentioned in the issue should not cause that. But it's the only code path I can see that uses the boosters' account when processing the boosted toot.

@ClearlyClaire ClearlyClaire force-pushed the fixes/announce-inlined-misattribution branch from a55b1c2 to 38c067f Compare June 4, 2019 19:19
@ClearlyClaire ClearlyClaire force-pushed the fixes/announce-inlined-misattribution branch from 38c067f to f7c7d80 Compare June 4, 2019 21:07
@Gargron Gargron merged commit 6c464cd into mastodon:master Jun 4, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
…astodon#10967)

* Do not misattribute inlined boosts if `attributedTo` isn't present

Fixes mastodon#10950

* Fix tests
rtucker pushed a commit to vulpineclub/mastodon that referenced this pull request Jan 7, 2021
…astodon#10967)

* Do not misattribute inlined boosts if `attributedTo` isn't present

Fixes mastodon#10950

* Fix tests
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
…astodon#10967)

* Do not misattribute inlined boosts if `attributedTo` isn't present

Fixes mastodon#10950

* Fix tests
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.

ActivityPub 'Announce' sometimes not displayed correctly as 'Boost'
2 participants